/* ==========================================================================
   RESET
========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================================
   BODY
========================================================================== */

body {

    font-family: "Segoe UI", sans-serif;

    background:
        linear-gradient(
            rgba(2,6,23,0.94),
            rgba(2,6,23,0.96)
        ),
        url("../background/auth-bg.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 100vh;

    color: #ffffff;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow-x: hidden;

    padding: 15px;

    position: relative;
}

/* ==========================================================================
   BACKGROUND GLOW
========================================================================== */

body::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at top center,
            rgba(59,130,246,0.12),
            transparent 40%
        );

    pointer-events: none;
}

/* ==========================================================================
   AUTH WRAPPER
========================================================================== */

.auth-wrapper {

    width: 100%;

    max-width: 410px;

    display: flex;
    flex-direction: column;
    align-items: center;

    position: relative;

    z-index: 2;
}

/* ==========================================================================
   LOGO
========================================================================== */

.logo {

    text-align: center;

    margin-bottom: 12px;
}

.logo h1 {

    font-size: 42px;

    font-weight: 300;

    letter-spacing: 4px;

    color: #4da3ff;

    text-shadow:
        0 0 10px rgba(77,163,255,0.6),
        0 0 25px rgba(77,163,255,0.2);
}

.logo p {

    margin-top: 5px;

    font-size: 13px;

    letter-spacing: 5px;

    color: rgba(255,255,255,0.62);
}

/* ==========================================================================
   CARD
========================================================================== */

.auth-card {

    width: 100%;

    padding:
        18px
        24px;

    border-radius: 28px;

    background:
        linear-gradient(
            180deg,
            rgba(8,15,35,0.96),
            rgba(3,8,20,0.96)
        );

    border:
        1px solid rgba(77,163,255,0.14);

    backdrop-filter: blur(14px);

    box-shadow:
        0 0 35px rgba(37,99,235,0.08),
        inset 0 0 18px rgba(59,130,246,0.03);

    position: relative;
}

/* ==========================================================================
   ICON
========================================================================== */

.auth-icon {

    width: 82px;
    height: 82px;

    margin:
        0 auto
        12px auto;

    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-icon img {

    width: 350px;
    height: 350px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 0 12px rgba(59,130,246,0.45)
        );
}

/* ==========================================================================
   TITLES
========================================================================== */

.auth-card h2 {

    text-align: center;

    font-size: 30px;

    font-weight: 700;

    margin-bottom: 5px;
}

.auth-card .subtitle {

    text-align: center;

    color: rgba(255,255,255,0.70);

    font-size: 16px;

    margin-bottom: 22px;
}

/* ==========================================================================
   FORM
========================================================================== */

form {

    display: flex;
    flex-direction: column;

    gap: 12px;
}

/* ==========================================================================
   LABELS
========================================================================== */

label {

    font-size: 14px;

    color: rgba(255,255,255,0.92);

    margin-bottom: -8px;
}

/* ==========================================================================
   INPUT GROUP
========================================================================== */

.input-group {

    position: relative;
}

/* ==========================================================================
   INPUTS
========================================================================== */

.input-group input {

    width: 100%;

    height: 50px;

    padding:
        0
        16px
        0
        48px;

    border-radius: 14px;

    border:
        1px solid rgba(77,163,255,0.16);

    background:
        linear-gradient(
            90deg,
            rgba(15,23,42,0.92),
            rgba(17,24,39,0.92)
        );

    color: #ffffff;

    font-size: 15px;

    outline: none;

    transition: 0.25s ease;
}

.input-group input::placeholder {

    color: rgba(255,255,255,0.32);
}

.input-group input:focus {

    border-color:
        rgba(77,163,255,0.55);

    box-shadow:
        0 0 12px rgba(77,163,255,0.12);
}

/* ==========================================================================
   INPUT ICONS
========================================================================== */

.input-group::before {

    content: "";

    position: absolute;

    left: 16px;
    top: 50%;

    width: 18px;
    height: 18px;

    transform: translateY(-50%);

    opacity: 0.7;

    background-size: contain;
    background-repeat: no-repeat;
}

.input-user::before {

    background-image:
        url("../background/user.png");
}

.input-password::before {

    background-image:
        url("../background/lock.png");
}

/* ==========================================================================
   BUTTON
========================================================================== */

button {

    width: 100%;

    height: 52px;

    margin-top: 4px;

    border: none;

    border-radius: 14px;

    background:
        linear-gradient(
            90deg,
            #1d9bf0,
            #3158ff
        );

    color: white;

    font-size: 18px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s ease;

    box-shadow:
        0 0 18px rgba(49,88,255,0.22);
}

button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 0 28px rgba(49,88,255,0.32);
}

/* ==========================================================================
   SEPARATOR
========================================================================== */

.separator {

    display: flex;
    align-items: center;

    gap: 12px;

    margin: 20px 0;
}

.separator::before,
.separator::after {

    content: "";

    flex: 1;

    height: 1px;

    background:
        rgba(255,255,255,0.10);
}

.separator span {

    color:
        rgba(255,255,255,0.50);

    font-size: 14px;
}

/* ==========================================================================
   LINKS
========================================================================== */

.auth-links {

    text-align: center;
}

.auth-links p {

    color:
        rgba(255,255,255,0.70);

    font-size: 15px;

    margin-bottom: 8px;
}

.auth-links a {

    color: #4da3ff;

    text-decoration: none;

    font-size: 18px;

    transition: 0.25s ease;
}

.auth-links a:hover {

    text-shadow:
        0 0 10px rgba(77,163,255,0.5);
}

/* ==========================================================================
   FOOTER
========================================================================== */

.auth-footer {

    margin-top: 16px;

    color:
        rgba(255,255,255,0.45);

    font-size: 13px;
}

/* ==========================================================================
   MESSAGES
========================================================================== */

.message {

    width: 100%;

    padding: 14px;

    margin-bottom: 16px;

    border-radius: 14px;

    text-align: center;

    font-size: 14px;

    font-weight: 500;
}

.message.error {

    background:
        rgba(239,68,68,0.12);

    border:
        1px solid rgba(239,68,68,0.30);

    color:
        #ff7c7c;
}

.message.success {

    background:
        rgba(34,197,94,0.12);

    border:
        1px solid rgba(34,197,94,0.30);

    color:
        #4ade80;
}