﻿:root {
    --primary: #8b5cf6;
    --primary-dark: #4c1d95;
    --primary-light: #a78bfa;
    --bg-dark: #070816;
    --card-bg: rgba(20, 18, 43, 0.72);
    --card-border: rgba(180, 155, 255, 0.38);
    --text-main: #ffffff;
    --text-soft: #c9c4dd;
    --text-muted: #9d96b8;
    --input-bg: rgba(255, 255, 255, 0.055);
    --input-border: rgba(167, 139, 250, 0.42);
    --danger-bg: rgba(255, 76, 76, 0.13);
    --danger-border: rgba(255, 76, 76, 0.35);
    --danger-text: #ffb4b4;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text-main);
    background: var(--bg-dark);
    overflow-x: hidden;
}

.login-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(7, 8, 22, 0.08), rgba(7, 8, 22, 0.82)), radial-gradient(circle at top, rgba(139, 92, 246, 0.28), transparent 35%), url("/images/login-building.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1), transparent 36%), linear-gradient(90deg, rgba(7, 8, 22, 0.62), rgba(7, 8, 22, 0.24), rgba(7, 8, 22, 0.62));
    pointer-events: none;
}

.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 610px;
    min-height: 780px;
    padding: 44px 54px 34px;
    border-radius: 38px;
    background: linear-gradient(180deg, rgba(45, 37, 85, 0.72), rgba(10, 12, 30, 0.82)), rgba(20, 18, 43, 0.68);
    border: 1px solid var(--card-border);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 0 70px rgba(139, 92, 246, 0.28), 0 34px 90px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.logo-box {
    width: 150px;
    height: 150px;
    margin: 0 auto 26px;
    padding: 24px;
    border-radius: 36px;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.42), rgba(31, 24, 66, 0.74));
    border: 1px solid rgba(167, 139, 250, 0.55);
    box-shadow: 0 0 38px rgba(139, 92, 246, 0.45), 0 22px 48px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .logo-box img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        filter: brightness(1.8) contrast(1.15);
    }

.secure-badge {
    width: fit-content;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 20px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.28);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

    .secure-badge span {
        color: var(--primary-light);
        font-size: 13px;
    }

.login-header {
    text-align: center;
}

    .login-header h1 {
        margin: 0;
        font-size: 48px;
        line-height: 1.05;
        font-weight: 850;
        letter-spacing: -1.4px;
    }

    .login-header p {
        margin: 15px 0 0;
        color: var(--text-soft);
        font-size: 20px;
        line-height: 1.5;
    }

.title-line {
    width: 56px;
    height: 4px;
    margin: 28px auto 30px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), #6d28d9);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.75);
}

.login-error {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 17px;
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger-text);
    font-size: 14px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 24px;
}

    .form-group label {
        display: block;
        margin-bottom: 11px;
        color: #ffffff;
        font-size: 17px;
        font-weight: 750;
    }

.input-wrapper {
    position: relative;
    height: 70px;
    border-radius: 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: 0.25s ease;
}

    .input-wrapper:focus-within {
        border-color: rgba(167, 139, 250, 0.9);
        box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16), 0 0 26px rgba(139, 92, 246, 0.18);
    }

.input-icon {
    width: 72px;
    min-width: 72px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.input-wrapper input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #ffffff;
    font-size: 18px;
    padding-right: 18px;
}

    .input-wrapper input::placeholder {
        color: rgba(224, 220, 245, 0.68);
    }

.password-toggle {
    width: 58px;
    min-width: 58px;
    height: 100%;
    border: none;
    background: transparent;
    color: #cfc9e8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .password-toggle:hover {
        color: #ffffff;
    }

.login-options {
    margin: 6px 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.remember-area {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #ffffff;
    font-size: 17px;
    cursor: pointer;
}

    .remember-area input {
        width: 22px;
        height: 22px;
        accent-color: var(--primary);
        cursor: pointer;
    }

.login-options a {
    color: var(--primary-light);
    font-size: 17px;
    font-weight: 750;
    text-decoration: none;
    border-bottom: 1px dashed rgba(167, 139, 250, 0.72);
}

.login-button {
    width: 100%;
    height: 72px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #ffffff;
    font-size: 22px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 18px 44px rgba(109, 40, 217, 0.38), 0 0 28px rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    transition: 0.25s ease;
}

    .login-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 24px 54px rgba(109, 40, 217, 0.48), 0 0 38px rgba(139, 92, 246, 0.42);
    }

.button-arrow {
    font-size: 36px;
    line-height: 1;
    margin-top: -3px;
}

.divider {
    margin: 34px 0 26px;
    display: flex;
    align-items: center;
    gap: 28px;
}

    .divider span {
        flex: 1;
        height: 1px;
        background: rgba(255, 255, 255, 0.14);
    }

    .divider p {
        margin: 0;
        color: var(--text-muted);
        font-size: 18px;
    }

.fingerprint-box {
    text-align: center;
    color: var(--text-soft);
}

.fingerprint-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(167, 139, 250, 0.18);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fingerprint-box p {
    margin: 0;
    font-size: 16px;
}

.login-footer {
    margin-top: 36px;
    text-align: center;
}

    .login-footer div {
        width: 100%;
        height: 1px;
        margin-bottom: 22px;
        background: rgba(255, 255, 255, 0.12);
    }

    .login-footer p {
        margin: 0;
        color: var(--text-muted);
        font-size: 15px;
        line-height: 1.7;
    }

    .login-footer strong {
        color: var(--primary-light);
    }

@media (max-width: 768px) {
    .login-page {
        padding: 20px;
        align-items: center;
        background-position: center;
    }

    .login-card {
        max-width: 520px;
        min-height: auto;
        padding: 34px 28px 28px;
        border-radius: 32px;
    }

    .logo-box {
        width: 122px;
        height: 122px;
        border-radius: 32px;
        margin-bottom: 22px;
    }

    .secure-badge {
        margin-bottom: 20px;
    }

    .login-header h1 {
        font-size: 38px;
    }

    .login-header p {
        font-size: 17px;
    }

    .input-wrapper {
        height: 62px;
    }

        .input-wrapper input {
            font-size: 16px;
        }

    .login-button {
        height: 64px;
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 14px;
    }

    .login-card {
        padding: 28px 20px 24px;
        border-radius: 28px;
    }

    .logo-box {
        width: 106px;
        height: 106px;
        padding: 18px;
    }

    .login-header h1 {
        font-size: 33px;
    }

    .login-header p {
        font-size: 15px;
    }

    .title-line {
        margin: 22px auto 26px;
    }

    .form-group {
        margin-bottom: 20px;
    }

        .form-group label {
            font-size: 15px;
        }

    .input-wrapper {
        height: 58px;
        border-radius: 15px;
    }

    .input-icon {
        width: 54px;
        min-width: 54px;
    }

    .password-toggle {
        width: 48px;
        min-width: 48px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
        margin-bottom: 26px;
    }

        .remember-area,
        .login-options a {
            font-size: 15px;
        }

    .login-button {
        height: 60px;
        font-size: 18px;
    }

    .divider {
        margin: 28px 0 22px;
        gap: 18px;
    }

    .fingerprint-icon {
        width: 64px;
        height: 64px;
    }

    .fingerprint-box p {
        font-size: 14px;
    }

    .login-footer {
        margin-top: 28px;
    }

        .login-footer p {
            font-size: 13px;
        }
}
