.login-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #3a7bd5 100%);
    padding: 15px;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../template/admin/dist/img/random_grey_variations.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    pointer-events: none;
}

.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    overflow: hidden;
    max-width: 750px;
    width: 100%;
    animation: slideUp 0.5s ease-out;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 20px 25px 15px;
    text-align: center;
    color: white;
    position: relative;
}

.login-header::before {
    content: '';
    position: absolute;
    /* top: -30px; */
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.login-header::after {
    content: '🎓';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 25px;
    z-index: 1;
}

.login-header h2 {
    margin: 10px 0 6px;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.login-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 13px;
    font-weight: 300;
}

.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    opacity: 0.8;
}

.logo-container img {
    max-width: 80px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.login-body {
    padding: 18px 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.login-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
    gap: 12px;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
}

.step-indicator.active {
    color: #2a5298;
}

.step-indicator::before {
    content: '';
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e8f4f8;
    border: 2px solid #e8f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #7f8c8d;
    transition: all 0.3s ease;
}

.step-indicator.active::before {
    background: #2a5298;
    border-color: #2a5298;
    color: white;
}

.step-indicator.completed::before {
    content: '✓';
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

.step-divider {
    width: 40px;
    height: 2px;
    background: #e8f4f8;
    transition: background-color 0.3s ease;
}

.step-indicator.active ~ .step-divider,
.step-indicator.completed ~ .step-divider {
    background: #2a5298;
}

.form-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #fafbfc;
    border-radius: 15px;
    border: 1px solid #e8f4f8;
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: #2a5298;
}

.form-section.completed {
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4f8 100%);
    border-color: #27ae60;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-title::before {
    content: '📋';
    font-size: 24px;
}

.section-subtitle {
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
}

.credentials-section {
    background: white;
    border: 2px solid #e8f4f8;
    border-radius: 10px;
    padding: 16px;
    margin-top: 12px;
}

.actions-section {
    text-align: center;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #e8f4f8;
}

.dual-selection-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

.selection-column {
    display: flex;
    flex-direction: column;
}

.column-header {
    text-align: center;
    margin-bottom: 20px;
}

.column-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.column-subtitle {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0;
    font-weight: 400;
}

.platform-grid, .usertype-grid {
    flex: 1;
}

.modern-selection {
    margin-bottom: 30px;
}

.selection-title {
    text-align: center;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.selection-title::before {
    content: '🎯';
    font-size: 24px;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.selection-grid.collapsed {
    grid-template-columns: 1fr;
}

.selection-card {
    position: relative;
    background: white;
    border: 2px solid #e8f4f8;
    border-radius: 6px;
    padding: 6px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    opacity: 1;
    transform: scale(1);
    max-height: 100px;
    overflow: hidden;
}

.selection-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    max-height: 0;
    padding: 0 15px;
    margin: 0;
    border: none;
    box-shadow: none;
    pointer-events: none;
}

.selection-card:hover:not(.hidden) {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
    border-color: #2a5298;
}

.selection-card.selected {
    border-color: #2a5298;
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4f8 100%);
    box-shadow: 0 6px 20px rgba(42, 82, 152, 0.15);
}

.selection-card.selected::before {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 12px;
    background: #2a5298;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.selection-card.selected .card-description {
    display: block;
}

.selection-card:not(.selected) .card-description {
    display: none;
}

.card-icon {
    font-size: 18px;
    margin-bottom: 4px;
    display: block;
    transition: transform 0.3s ease;
}

.selection-card:hover:not(.hidden) .card-icon {
    transform: scale(1.05);
}

.card-title {
    font-size: 11px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2px;
}

.card-description {
    font-size: 9px;
    color: #7f8c8d;
    line-height: 1.1;
    margin: 0;
    transition: all 0.3s ease;
}

.selection-toggle {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    border: 2px solid #2a5298;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 120px;
    justify-content: center;
}

.selection-toggle::before {
    content: '🔄';
    font-size: 14px;
    transition: transform 0.3s ease;
}

.selection-toggle:hover {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-color: #1e3c72;
    box-shadow: 0 6px 20px rgba(42, 82, 152, 0.4);
    transform: translateY(-2px);
}

.selection-toggle:hover::before {
    transform: rotate(180deg);
}

.selection-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(42, 82, 152, 0.3);
}

.selection-card.selected .selection-toggle {
    display: flex;
    animation: buttonAppear 0.4s ease-out;
}

.selection-card:not(.selected) .selection-toggle {
    display: none;
}

@keyframes buttonAppear {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.selection-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Platform specific colors */
.platform-card.men {
    border-left: 5px solid #3498db;
}

.platform-card.women {
    border-left: 5px solid #e74c3c;
}

.platform-card.men.selected {
    border-color: #3498db;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
}

.platform-card.women.selected {
    border-color: #e74c3c;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.2);
}

/* User type specific colors */
.user-card.admin {
    border-left: 5px solid #9b59b6;
}

.user-card.supervisor {
    border-left: 5px solid #f39c12;
}

.user-card.teacher {
    border-left: 5px solid #27ae60;
}

.user-card.student {
    border-left: 5px solid #e67e22;
}

.user-card.parent {
    border-left: 5px solid #16a085;
}

.user-card.admin.selected {
    border-color: #9b59b6;
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.2);
}

.user-card.supervisor.selected {
    border-color: #f39c12;
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.2);
}

.user-card.teacher.selected {
    border-color: #27ae60;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.2);
}

.user-card.student.selected {
    border-color: #e67e22;
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.2);
}

.user-card.parent.selected {
    border-color: #16a085;
    box-shadow: 0 8px 25px rgba(22, 160, 133, 0.2);
}

@media (max-width: 768px) {
    .selection-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .selection-card {
        padding: 20px 15px;
    }

    .card-icon {
        font-size: 40px;
    }

    .card-title {
        font-size: 16px;
    }
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label::before {
    content: '📚';
    font-size: 14px;
    opacity: 0.7;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e8f4f8;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #f8fbff;
}

.form-control:focus {
    border-color: #2a5298;
    outline: none;
    box-shadow: 0 0 0 4px rgba(42, 82, 152, 0.1);
    background: white;
    transform: translateY(-1px);
}

.form-control:hover {
    border-color: #4a90e2;
    background: white;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background: #f8fbff url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232a5298" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e') no-repeat;
    background-position: left 15px center;
    background-size: 20px;
    padding-left: 45px;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(30, 60, 114, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-register {
    width: 100%;
    padding: 12px;
    background: white;
    color: #2a5298;
    border: 2px solid #2a5298;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: #2a5298;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(42, 82, 152, 0.3);
}

.forgot-password {
    text-align: center;
    margin: 25px 0;
}

.forgot-password a {
    color: #2a5298;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.forgot-password a:hover {
    color: #1e3c72;
    text-decoration: underline;
    transform: translateX(-2px);
}

.notification-input-en {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

.ni-error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    display: block;
    animation: shake 0.5s;
    font-weight: 500;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.welcome-text {
    text-align: center;
    margin-bottom: 15px;
    color: #34495e;
    font-size: 13px;
    line-height: 1.4;
}

.welcome-text strong {
    color: #2a5298;
    font-weight: 600;
}

@media (max-width: 576px) {
    .login-container {
        border-radius: 15px;
        margin: 10px;
    }

    .login-header {
        padding: 40px 20px 30px;
    }

    .login-header h2 {
        font-size: 28px;
        color: white !important;
    }

    .login-body {
        padding: 15px;
    }

    .login-steps {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }

    .step-divider {
        width: 2px;
        height: 20px;
        background: #e8f4f8;
    }

    .form-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 18px;
    }

    .credentials-section {
        padding: 15px;
    }

    .dual-selection-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .column-title {
        font-size: 14px;
    }

    .column-subtitle {
        font-size: 12px;
    }

    .selection-card {
        padding: 15px 12px;
    }

    .card-icon {
        font-size: 32px;
    }

    .card-title {
        font-size: 14px;
    }

    .actions-section {
        margin-top: 30px;
        padding-top: 20px;
    }

    .selection-toggle {
        padding: 5px 12px;
        font-size: 11px;
        min-width: 100px;
        top: 6px;
    }

    .selection-toggle::before {
        font-size: 12px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
    margin: 15px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 20px 25px;
    color: white;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 16px;
    max-height: 50vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid #e8f4f8;
    text-align: center;
    background: #fafbfc;
    border-radius: 0 0 20px 20px;
}

.btn-confirm-selection {
    padding: 14px 30px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: 2px solid #27ae60;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-confirm-selection:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.btn-confirm-selection:disabled {
    background: #bdc3c7;
    border-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 20px;
    }

    .dual-selection-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
.single-selection-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.single-selection-container .selection-column {
    flex: 1;
    min-width: 300px;
}
