
/* =========================================================
   NTE AUTH
   ========================================================= */

* {
    box-sizing: border-box;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(120, 90, 255, 0.16),
            transparent 35%
        ),
        #090a0f;

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.auth-container {
    width: 100%;
    max-width: 430px;
}


/* =========================================================
   LOGO
   ========================================================= */

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo-title {
    margin: 0;

    font-size: 34px;
    font-weight: 800;

    letter-spacing: 0.08em;
}

.auth-logo-subtitle {
    margin-top: 8px;

    font-size: 13px;
    color: #8e91a1;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}


/* =========================================================
   CARD
   ========================================================= */

.auth-card {
    background: rgba(18, 19, 27, 0.94);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 18px;

    padding: 32px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);

    backdrop-filter: blur(14px);
}


/* =========================================================
   TITLE
   ========================================================= */

.auth-title {
    margin: 0;

    font-size: 24px;
    font-weight: 700;

    text-align: center;
}

.auth-description {
    margin: 9px 0 28px;

    color: #8e91a1;

    font-size: 14px;

    text-align: center;
}


/* =========================================================
   FORM
   ========================================================= */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.auth-label {
    font-size: 13px;
    font-weight: 600;

    color: #c8cad4;
}


.auth-input {
    width: 100%;

    height: 48px;

    padding: 0 14px;

    border-radius: 10px;

    border: 1px solid #292b36;

    outline: none;

    background: #111219;

    color: #ffffff;

    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.auth-input::placeholder {
    color: #5d606c;
}


.auth-input:hover {
    border-color: #383b49;
}


.auth-input:focus {
    border-color: #7c5cff;

    background: #13141d;

    box-shadow:
        0 0 0 3px rgba(124, 92, 255, 0.13);
}


/* =========================================================
   ROLE
   ========================================================= */

.auth-role {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}


.auth-role-option {
    position: relative;
}


.auth-role-option input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.auth-role-label {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 74px;

    padding: 12px;

    border-radius: 12px;

    border: 1px solid #292b36;

    background: #111219;

    color: #aeb1bd;

    text-align: center;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.auth-role-label:hover {
    border-color: #414453;

    transform: translateY(-1px);
}


.auth-role-option input:checked + .auth-role-label {
    border-color: #7c5cff;

    background: rgba(124, 92, 255, 0.12);

    color: #ffffff;

    box-shadow:
        inset 0 0 0 1px rgba(124, 92, 255, 0.18);
}


/* =========================================================
   BUTTON
   ========================================================= */

.auth-button {
    width: 100%;

    height: 50px;

    margin-top: 4px;

    border: 0;

    border-radius: 11px;

    background: #7c5cff;

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}


.auth-button:hover {
    background: #896dff;

    box-shadow:
        0 8px 30px rgba(124, 92, 255, 0.22);

    transform: translateY(-1px);
}


.auth-button:active {
    transform: translateY(0);
}


.auth-button:disabled {
    opacity: 0.55;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =========================================================
   SWITCH
   ========================================================= */

.auth-switch {
    margin-top: 24px;

    text-align: center;

    color: #777b89;

    font-size: 13px;
}


.auth-switch button {
    padding: 0;

    border: 0;

    background: none;

    color: #9b85ff;

    font: inherit;
    font-weight: 600;

    cursor: pointer;
}


.auth-switch button:hover {
    color: #b2a1ff;

    text-decoration: underline;
}


/* =========================================================
   ERROR
   ========================================================= */

.auth-error {
    display: none;

    padding: 11px 13px;

    border-radius: 9px;

    border: 1px solid rgba(255, 80, 80, 0.25);

    background: rgba(255, 80, 80, 0.08);

    color: #ff8e8e;

    font-size: 13px;

    line-height: 1.4;
}


.auth-error.visible {
    display: block;
}


/* =========================================================
   SUCCESS
   ========================================================= */

.auth-success {
    display: none;

    padding: 11px 13px;

    border-radius: 9px;

    border: 1px solid rgba(70, 210, 130, 0.25);

    background: rgba(70, 210, 130, 0.08);

    color: #76e3a2;

    font-size: 13px;

    line-height: 1.4;
}


.auth-success.visible {
    display: block;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

    body.auth-page {
        padding: 16px;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .auth-logo-title {
        font-size: 28px;
    }

    .auth-role {
        grid-template-columns: 1fr;
    }
}

