﻿/* Full Page Container */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: -20px 0;
}

.login-wrapper {
    width: 100%;
    max-width: 1200px;
    background: white;
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12), 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    min-height: 600px;
    position: relative;
}

/* Left Side - Branding */
.login-left {
    flex: 1.2;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 50px 45px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .login-left::before {
        content: '';
        position: absolute;
        top: -30%;
        right: -30%;
        width: 80%;
        height: 80%;
        background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
        border-radius: 50%;
        animation: float 8s ease-in-out infinite;
    }

    .login-left::after {
        content: '';
        position: absolute;
        bottom: -20%;
        left: -20%;
        width: 60%;
        height: 60%;
        background: radial-gradient(circle, rgba(118, 75, 162, 0.12) 0%, transparent 70%);
        border-radius: 50%;
        animation: float 10s ease-in-out infinite reverse;
    }

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-10px, 20px) scale(1.1);
    }
}

.login-left-content {
    position: relative;
    z-index: 2;
}

.login-left .school-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 20px 8px 16px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

    .login-left .school-badge i {
        font-size: 20px;
        color: #667eea;
        background: rgba(255, 255, 255, 0.12);
        padding: 6px;
        border-radius: 50%;
    }

    .login-left .school-badge span {
        font-size: 0.85rem;
        font-weight: 500;
        opacity: 0.8;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

.login-left h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.1;
    letter-spacing: -1px;
}

    .login-left h1 .highlight {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.login-left p.subtitle {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-bottom: 35px;
    font-weight: 400;
    line-height: 1.6;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

    .feature-item:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: translateX(4px);
    }

    .feature-item .icon-circle {
        width: 36px;
        height: 36px;
        min-width: 36px;
        background: rgba(102, 126, 234, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: #667eea;
    }

    .feature-item span {
        font-size: 0.85rem;
        font-weight: 500;
        opacity: 0.85;
    }

/* Right Side - Login Form */
.login-right {
    flex: 1;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

    .login-logo .logo-icon {
        width: 72px;
        height: 72px;
        /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 16px;
        font-size: 32px;
        color: white;
        /*box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);*/
    }

    .login-logo h2 {
        font-weight: 700;
        color: #1a1a2e;
        font-size: 1.6rem;
        margin: 0;
        letter-spacing: -0.5px;
    }

    .login-logo p {
        color: #6c757d;
        margin: 4px 0 0;
        font-size: 0.95rem;
        font-weight: 400;
    }

.form-floating {
    margin-bottom: 16px;
}

    .form-floating .input-group {
        border-radius: 14px;
        overflow: hidden;
        border: 2px solid #e8ecf1;
        transition: all 0.3s ease;
        background: #f8fafc;
    }

        .form-floating .input-group:focus-within {
            border-color: #667eea;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
            background: white;
        }

        .form-floating .input-group .input-group-text {
            background: transparent;
            border: none;
            color: #a0aec0;
            padding: 0 0 0 16px;
            font-size: 1rem;
        }

        .form-floating .input-group .form-control {
            border: none;
            background: transparent;
            padding: 14px 16px;
            font-size: 0.95rem;
            font-weight: 500;
            color: #1a1a2e;
            box-shadow: none !important;
        }

            .form-floating .input-group .form-control:focus {
                background: transparent;
            }

            .form-floating .input-group .form-control::placeholder {
                color: #a0aec0;
                font-weight: 400;
            }

        .form-floating .input-group .btn-outline-secondary {
            border: none;
            background: transparent;
            color: #a0aec0;
            padding: 0 16px 0 0;
        }

            .form-floating .input-group .btn-outline-secondary:hover {
                background: transparent;
                color: #667eea;
            }

            .form-floating .input-group .btn-outline-secondary:focus {
                box-shadow: none;
            }

.validation-error {
    font-size: 0.8rem;
    color: #e53e3e;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

.alert {
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: none;
    animation: slideDown 0.4s ease-out;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 24px;
    flex-wrap: wrap;
    gap: 8px;
}

    .login-options .form-check {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .login-options .form-check-input {
        width: 18px;
        height: 18px;
        border-radius: 6px;
        border: 2px solid #d1d5db;
        cursor: pointer;
        margin: 0;
    }

        .login-options .form-check-input:checked {
            background-color: #667eea;
            border-color: #667eea;
        }

        .login-options .form-check-input:focus {
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
        }

    .login-options .form-check-label {
        color: #4b5563;
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
    }

    .login-options .forgot-link {
        color: #667eea;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .login-options .forgot-link:hover {
            color: #764ba2;
        }

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
    transition: all 0.3s ease;
    color: white;
    position: relative;
    overflow: hidden;
    width: 100%;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
        color: white;
    }

    .btn-login:active {
        transform: translateY(0);
    }

    .btn-login:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none !important;
    }

    .btn-login .spinner-border {
        width: 1.2rem;
        height: 1.2rem;
        margin-right: 8px;
    }

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #e5e7eb;
    }

    .divider span {
        padding: 0 16px;
        color: #9ca3af;
        font-size: 0.8rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.support-section {
    text-align: center;
    margin-top: 8px;
}

    .support-section p {
        color: #6b7280;
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .support-section a {
        color: #667eea;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9rem;
        transition: color 0.3s ease;
    }

        .support-section a:hover {
            color: #764ba2;
        }

/* Mobile Responsive */
@media (max-width: 992px) {
    .login-wrapper {
        max-width: 600px;
        min-height: auto;
        border-radius: 24px;
    }

    .login-left {
        padding: 35px 30px;
    }

        .login-left h1 {
            font-size: 2.2rem;
        }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .login-right {
        padding: 35px 30px;
    }
}

@media (max-width: 768px) {
    .login-page {
        padding: 12px;
        margin: -12px 0;
    }

    .login-wrapper {
        flex-direction: column;
        border-radius: 20px;
        max-width: 100%;
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 30px 24px;
    }

    .login-logo .logo-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
        border-radius: 16px;
    }

    .login-logo h2 {
        font-size: 1.4rem;
    }

    .login-logo p {
        font-size: 0.85rem;
    }

    .form-floating .input-group .form-control {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .login-options {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

        .login-options .forgot-link {
            text-align: center;
        }

    .btn-login {
        padding: 12px;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    .divider span {
        font-size: 0.75rem;
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 8px;
        margin: -8px 0;
    }

    .login-wrapper {
        border-radius: 16px;
    }

    .login-right {
        padding: 24px 16px;
    }

    .login-logo {
        margin-bottom: 24px;
    }

        .login-logo .logo-icon {
            width: 52px;
            height: 52px;
            font-size: 22px;
            border-radius: 14px;
            margin-bottom: 12px;
        }

        .login-logo h2 {
            font-size: 1.2rem;
        }

    .form-floating {
        margin-bottom: 12px;
    }

        .form-floating .input-group {
            border-radius: 12px;
        }

            .form-floating .input-group .form-control {
                padding: 10px 12px;
                font-size: 0.85rem;
            }

            .form-floating .input-group .input-group-text {
                padding: 0 0 0 12px;
                font-size: 0.85rem;
            }

            .form-floating .input-group .btn-outline-secondary {
                padding: 0 12px 0 0;
                font-size: 0.85rem;
            }

    .alert {
        padding: 10px 14px;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .btn-login {
        padding: 10px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .login-options .form-check-label {
        font-size: 0.8rem;
    }

    .login-options .forgot-link {
        font-size: 0.8rem;
    }

    .support-section p {
        font-size: 0.75rem;
    }

    .support-section a {
        font-size: 0.8rem;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) {
    .feature-item:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.05);
    }

    .btn-login:hover {
        transform: none;
        box-shadow: none;
    }

    .login-options .form-check-input {
        width: 20px;
        height: 20px;
    }
}

/* High DPI / Large Text */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .login-page {
        background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    }

    .login-wrapper {
        background: #1a1a2e;
    }

    .login-right {
        background: #1a1a2e;
    }

    .login-logo h2 {
        color: #e2e8f0;
    }

    .login-logo p {
        color: #94a3b8;
    }

    .form-floating .input-group {
        background: #2d2d44;
        border-color: #3d3d5c;
    }

        .form-floating .input-group .form-control {
            color: #e2e8f0;
        }

            .form-floating .input-group .form-control::placeholder {
                color: #64748b;
            }

        .form-floating .input-group .input-group-text {
            color: #64748b;
        }

    .login-options .form-check-label {
        color: #94a3b8;
    }

    .login-options .form-check-input {
        border-color: #4a4a6a;
    }

    .divider::before,
    .divider::after {
        border-bottom-color: #3d3d5c;
    }

    .divider span {
        color: #64748b;
    }

    .support-section p {
        color: #94a3b8;
    }

    .alert-danger {
        background: #2d1f1f;
        color: #fca5a5;
        border-left-color: #ef4444;
    }

    .alert-success {
        background: #1f2d1f;
        color: #86efac;
        border-left-color: #22c55e;
    }
}
