﻿
* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #14284d;
    background: #f2f7ff;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 10% 12%, rgba(59, 130, 246, 0.17), transparent 32%), radial-gradient(circle at 90% 85%, rgba(6, 182, 212, 0.13), transparent 30%), linear-gradient(135deg, #f7faff 0%, #eaf3ff 50%, #f7fbff 100%);
}

    /* Decorative background shapes */
    .login-page::before,
    .login-page::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
    }

    .login-page::before {
        width: 340px;
        height: 340px;
        top: -190px;
        left: -100px;
        background: linear-gradient(135deg, #2563eb, #38bdf8);
        opacity: 0.13;
    }

    .login-page::after {
        width: 400px;
        height: 400px;
        right: -200px;
        bottom: -230px;
        background: linear-gradient(135deg, #06b6d4, #3b82f6);
        opacity: 0.13;
    }

/* Main login card */
.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    padding: 38px 40px 30px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(219, 231, 248, 0.95);
    border-radius: 25px;
    box-shadow: 0 25px 70px rgba(30, 64, 125, 0.12), 0 5px 18px rgba(30, 64, 125, 0.05);
    backdrop-filter: blur(12px);
}

/* Logo section */
.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    min-height: 100px;
}

.login-logo {
    display: block;
    width: 100%;
    max-width: 230px;
    height: 110px;
    object-fit: contain;
    object-position: center;
    border: none;
    outline: none;
    box-shadow: none;
}

/* Login heading */
.login-heading {
    text-align: center;
    margin-bottom: 30px;
}

    .login-heading h3 {
        margin: 0 0 9px;
        color: #12316a;
        font-size: 29px;
        line-height: 1.3;
        font-weight: 750;
        letter-spacing: -0.7px;
    }

    .login-heading p {
        margin: 0;
        color: #7a8eae;
        font-size: 14px;
        line-height: 1.6;
    }

/* Form */
.form-group {
    margin-bottom: 21px;
}

    .form-group label {
        display: block;
        margin-bottom: 9px;
        color: #193665;
        font-size: 13px;
        font-weight: 650;
    }

.input-box {
    height: 54px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    background: #fbfdff;
    border: 1px solid #d7e2f1;
    border-radius: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .input-box:focus-within {
        background: #fff;
        border-color: #3981f6;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
    }

    .input-box > i {
        flex-shrink: 0;
        margin-right: 12px;
        color: #6481ad;
        font-size: 19px;
    }

    .input-box input {
        width: 100%;
        min-width: 0;
        height: 100%;
        flex: 1;
        padding: 0;
        color: #193665;
        background: transparent;
        border: none;
        outline: none;
        font-family: inherit;
        font-size: 14px;
    }

        .input-box input::placeholder {
            color: #9aabc4;
            opacity: 1;
        }

.password-toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    color: #8194b2;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s ease;
}

    .password-toggle:hover {
        color: #2563eb;
    }

    .password-toggle:focus-visible {
        outline: 2px solid #3981f6;
        outline-offset: 2px;
        border-radius: 5px;
    }

/* Sign In button */
.login-btn {
    width: 100%;
    height: 54px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    background: linear-gradient(110deg, #1d4ed8, #287cf0 60%, #38a0f8);
    border: none;
    border-radius: 13px;
    box-shadow: 0 9px 20px rgba(37, 99, 235, 0.22);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

    .login-btn i {
        font-size: 18px;
        transition: transform 0.2s ease;
    }

    .login-btn:hover {
        color: #fff;
        filter: brightness(1.04);
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(37, 99, 235, 0.28);
    }

        .login-btn:hover i {
            transform: translateX(3px);
        }

    .login-btn:active {
        transform: translateY(0);
    }

/* Success and error alerts */
.login-alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
    overflow-wrap: anywhere;
}

    .login-alert.alert-success {
        color: #087c4a;
        background: #effcf5;
        border-color: #b8efd0;
    }

    .login-alert.alert-danger {
        color: #b42332;
        background: #fff3f3;
        border-color: #ffd0d0;
    }

/* Footer */
.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e8eef7;
    color: #8495af;
    font-size: 12px;
    text-align: center;
}

    .login-footer i {
        color: #16a36a;
        font-size: 16px;
    }

/* Keyboard accessibility */
.login-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .login-page {
        padding: 20px 14px;
    }

    .login-card {
        padding: 30px 22px 24px;
        border-radius: 20px;
    }

    .login-brand {
        margin-bottom: 24px;
        min-height: 85px;
    }

    .login-logo {
        max-width: 200px;
        height: 90px;
    }

    .login-heading {
        margin-bottom: 25px;
    }

        .login-heading h3 {
            font-size: 25px;
        }

    .input-box,
    .login-btn {
        height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


