/* ================================================================
   Login Page – Modern Split-Screen Design
   ================================================================ */

/* Full-page container */
.login-page {
    min-height: 100vh;
    background-color: #f5f5f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main card wrapper */
.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 880px;
    min-height: 520px;
    background-color: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8e8e4;
    animation: loginFadeIn 0.6s ease-out;
}

@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Left decorative panel ---- */
.login-panel-left {
    flex: 0 0 42%;
    background: linear-gradient(160deg, #e8e8e4 0%, #d4d4d0 40%, #c4c4c0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 36px;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.login-panel-left::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -40px;
    right: -60px;
}
.login-panel-left::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    bottom: -30px;
    left: -40px;
}

.login-panel-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.login-panel-icon i {
    font-size: 32px;
    color: #ffffff;
}

.login-panel-left h2 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-panel-left p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    line-height: 1.6;
    max-width: 240px;
    position: relative;
    z-index: 1;
}

/* ---- Right form panel ---- */
.login-panel-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 44px;
}

.login-logo {
    margin-bottom: 32px;
}
.login-logo img {
    max-height: 40px;
}

.login-heading h3 {
    font-size: 20px;
    font-weight: 700;
    color: #3d3d3d;
    margin-bottom: 4px;
    letter-spacing: -0.03em;
}

.login-heading p {
    font-size: 13px;
    color: #8a8a8a;
    margin-bottom: 28px;
}

/* Form fields */
.login-form .form-group {
    margin-bottom: 18px;
}

.login-form .form-group label {
    font-size: 11.5px;
    font-weight: 600;
    color: #8a8a8a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.login-form .input-wrapper {
    position: relative;
}

.login-form .input-wrapper i.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #b8b8b4;
    pointer-events: none;
    transition: color 0.25s ease;
}

.login-form .input-wrapper input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
    color: #3d3d3d;
    background-color: #ffffff;
    border: 1.5px solid #e8e8e4;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.login-form .input-wrapper input:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.12);
}

.login-form .input-wrapper input:focus ~ i.field-icon {
    color: #94a3b8;
}

.login-form .input-wrapper input::placeholder {
    color: #c4c4c0;
    font-weight: 400;
}

/* Password toggle */
.login-form .input-wrapper .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #b8b8b4;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 0.25s ease;
}
.login-form .input-wrapper .toggle-password:hover {
    color: #8a8a8a;
}

/* Error message */
.login-error {
    background-color: #faf0ee;
    color: #8f5d52;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.login-error i {
    font-size: 15px;
    flex-shrink: 0;
}

/* Submit button */
.login-form .btn-login {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #94a3b8 0%, #8494a7 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
    margin-top: 4px;
}
.login-form .btn-login:hover {
    background: linear-gradient(135deg, #8494a7 0%, #7a8a9e 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(148, 163, 184, 0.25);
}
.login-form .btn-login:active {
    transform: translateY(0);
}

/* Forgot password link */
.login-footer-link {
    text-align: center;
    margin-top: 18px;
}
.login-footer-link a {
    font-size: 12.5px;
    color: #8a8a8a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
}
.login-footer-link a:hover {
    color: #3d3d3d;
}

/* Credits */
.login-credits {
    text-align: center;
    margin-top: 32px;
    font-size: 11px;
    color: #b8b8b4;
}
.login-credits a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
}
.login-credits a:hover {
    color: #7a8a9e;
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 768px) {
    .login-page {
        padding: 16px;
    }

    .login-wrapper {
        flex-direction: column;
        max-width: 420px;
        min-height: auto;
    }

    .login-panel-left {
        flex: none;
        padding: 32px 24px;
    }

    .login-panel-left h2 {
        font-size: 18px;
    }

    .login-panel-left p {
        font-size: 12px;
    }

    .login-panel-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 18px;
    }

    .login-panel-icon i {
        font-size: 24px;
    }

    .login-panel-right {
        padding: 32px 28px;
    }

    .login-heading h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .login-panel-left {
        padding: 24px 20px;
    }

    .login-panel-right {
        padding: 24px 20px;
    }
}
