/*
|--------------------------------------------------------------------------
| PROJECT REDLINE - AUTH SYSTEM
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;

    font-family:
        Inter,
        Arial,
        sans-serif;
}

.auth-page {
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        radial-gradient(circle at top, rgba(255, 69, 0, 0.08), transparent 30%),
        #050505;

    overflow: hidden;
}

.auth-container {
    width: 100%;
    max-width: 500px;

    padding:
        30px
        32px;

    border-radius: 28px;

    border: 1px solid rgba(255, 255, 255, 0.06);

    background:
        linear-gradient(
            135deg,
            rgba(10, 10, 10, 0.98),
            rgba(6, 6, 6, 0.98)
        );

    box-shadow:
        0 0 40px rgba(255, 42, 42, 0.05),
        0 0 120px rgba(0, 0, 0, 0.85);
}

/*
|--------------------------------------------------------------------------
| TITLE
|--------------------------------------------------------------------------
*/

.auth-title {
    margin-bottom: 34px;

    text-align: center;

    font-size: 48px;
    font-weight: 800;

    letter-spacing: 2px;
    text-transform: uppercase;

    color: #FF2A2A;

    text-shadow:
        0 0 18px rgba(255, 42, 42, 0.2);
}

/*
|--------------------------------------------------------------------------
| FORM
|--------------------------------------------------------------------------
*/

.auth-form {
    display: flex;
    flex-direction: column;

    gap: 16px;
}

.auth-form.hidden {
    display: none;
}

/*
|--------------------------------------------------------------------------
| INPUT GROUP
|--------------------------------------------------------------------------
*/

.auth-input-group {
    position: relative;
}

/*
|--------------------------------------------------------------------------
| INPUT ICON
|--------------------------------------------------------------------------
*/

.auth-input-icon {
    position: absolute;

    top: 50%;
    left: 22px;

    transform: translateY(-50%);

    color: #FF2A2A;

    font-size: 16px;
}

/*
|--------------------------------------------------------------------------
| INPUT
|--------------------------------------------------------------------------
*/

.auth-input {
    width: 100%;
    height: 64px;

    padding:
        0
        22px
        0
        56px;

    border-radius: 18px;

    border: 1px solid rgba(255, 255, 255, 0.07);

    outline: none;

    background:
        linear-gradient(
            90deg,
            rgba(14, 14, 14, 0.98),
            rgba(10, 10, 10, 0.98)
        );

    color: #FFFFFF;

    font-size: 15px;
    font-weight: 500;

    transition: 0.2s ease;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.auth-input:focus {
    border-color: rgba(255, 42, 42, 0.22);

    box-shadow:
        0 0 0 4px rgba(255, 42, 42, 0.03),
        0 0 22px rgba(255, 42, 42, 0.08);
}

/*
|--------------------------------------------------------------------------
| BUTTON
|--------------------------------------------------------------------------
*/

.auth-submit {
    width: 100%;
    height: 56px;

    margin-top: 8px;

    border: none;
    border-radius: 16px;

    background:
        linear-gradient(
            180deg,
            #FF3434,
            #FF2020
        );

    color: #FFFFFF;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;

    box-shadow:
        0 0 24px rgba(255, 42, 42, 0.2);
}

.auth-submit i {
    margin-right: 8px;
}

.auth-submit:hover {
    box-shadow:
        0 0 28px rgba(255, 42, 42, 0.3);
}

/*
|--------------------------------------------------------------------------
| SWITCH
|--------------------------------------------------------------------------
*/

.auth-switch {
    margin-top: 24px;

    text-align: center;

    color: rgba(255, 255, 255, 0.5);

    font-size: 14px;
    font-weight: 500;
}

.auth-switch-button {
    border: none;

    background: transparent;

    color: #FF2A2A;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.auth-switch-button:hover {
    text-decoration: underline;
}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .auth-container {
        max-width: 100%;

        padding:
            26px
            22px;
    }

    .auth-title {
        font-size: 40px;
    }

    .auth-input {
        height: 60px;
    }
}

/*
|--------------------------------------------------------------------------
| LIGHT THEME
|--------------------------------------------------------------------------
*/

body.theme-light .auth-page {

    background:
        radial-gradient(
            circle at top,
            rgba(255,52,52,0.08),
            transparent 35%
        ),
        var(--background-color);
}

body.theme-light .auth-container {

    background:
        var(--background-secondary);

    border:
        1px solid var(--card-border);

    box-shadow:
        0 12px 40px rgba(0,0,0,0.08);
}

body.theme-light .auth-title {

    color:
        var(--primary-color);

    text-shadow:
        none;
}

body.theme-light .auth-input-icon {

    color:
        var(--primary-color);
}

body.theme-light .auth-input {

    background:
        var(--card-background);

    border:
        1px solid var(--card-border);

    color:
        var(--text-color);
}

body.theme-light .auth-input::placeholder {

    color:
        var(--text-muted);
}

body.theme-light .auth-input:focus {

    border-color:
        rgba(255,52,52,0.25);

    box-shadow:
        0 0 0 4px rgba(255,52,52,0.05),
        0 0 20px rgba(255,52,52,0.08);
}

body.theme-light .auth-switch {

    color:
        var(--text-muted);
}

body.theme-light .auth-switch-button {

    color:
        var(--primary-color);
}

body.theme-light .auth-switch-button:hover {

    color:
        var(--primary-hover);
}

