﻿* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
}


/* =====================================
   LOGIN PAGE
===================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: radial-gradient( circle at 85% 50%, rgba(37, 99, 235, 0.22), transparent 45% ), linear-gradient( 135deg, #080e1d 0%, #101a38 45%, #182c69 100% );
}


/* =====================================
   LOGIN CARD
===================================== */

.login-card {
    width: 100%;
    max-width: 635px;
    padding: 44px 46px 40px;
    border-radius: 28px;
    background: linear-gradient( 145deg, rgba(17, 30, 60, 0.94), rgba(12, 24, 49, 0.97) );
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(15px);
}


/* =====================================
   BADGE
===================================== */

.system-badge {
    width: fit-content;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    border-radius: 30px;
    color: #7db5ff;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.30);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-icon {
    font-size: 17px;
}


/* =====================================
   HEADER
===================================== */

.login-card h1 {
    margin: 0;
    text-align: center;
    color: #f1f5f9;
    font-size: 34px;
    font-weight: 750;
    letter-spacing: -0.8px;
}

.login-subtitle {
    margin: 8px 0 32px;
    text-align: center;
    color: #94a3b8;
    font-size: 15px;
}


/* =====================================
   FORM
===================================== */

.form-group {
    margin-bottom: 22px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #d6deeb;
        font-size: 14px;
        font-weight: 600;
    }


/* =====================================
   INPUT
===================================== */

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 17px;
    color: #71819c;
    font-size: 17px;
    z-index: 2;
}

.login-input {
    width: 100%;
    height: 50px;
    padding: 0 48px;
    border-radius: 11px;
    border: 1px solid #263756;
    outline: none;
    color: #e5edf8;
    background: rgba(8, 18, 38, 0.55);
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .login-input::placeholder {
        color: #66748b;
    }

    .login-input:focus {
        border-color: #3b82f6;
        background: rgba(8, 18, 38, 0.75);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    }


/* =====================================
   PASSWORD TOGGLE
===================================== */

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #71819c;
    font-size: 17px;
    cursor: pointer;
    padding: 5px;
}

    .password-toggle:hover {
        color: #60a5fa;
    }


/* =====================================
   ERROR
===================================== */

.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    margin-bottom: 18px;
    border-radius: 9px;
    color: #fca5a5;
    background: rgba(220, 38, 38, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.20);
    font-size: 13px;
}


/* =====================================
   LOGIN BUTTON
===================================== */

.login-button {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: white;
    background: linear-gradient( 135deg, #3b82f6, #2563eb );
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .login-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.30);
    }


/* =====================================
   BACK LINK
===================================== */

.back-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 27px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

    .back-link:hover {
        color: #60a5fa;
    }


/* =====================================
   MOBILE
===================================== */

@media (max-width: 600px) {

    .login-page {
        padding: 18px 12px;
        align-items: flex-start;
    }

    .login-card {
        margin-top: 30px;
        padding: 30px 22px;
        border-radius: 20px;
    }

        .login-card h1 {
            font-size: 28px;
        }

    .system-badge {
        font-size: 10px;
    }
}

.selected-category {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    margin: -10px auto 28px;
    padding: 7px 14px;
    border-radius: 20px;
    background: rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(59, 130, 246, 0.20);
    color: #94a3b8;
    font-size: 13px;
}

    .selected-category strong {
        color: #60a5fa;
        font-weight: 600;
    }

.category-label {
    color: #64748b;
}
