@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;800&display=swap');

:root {
    --auth-page-bg: radial-gradient(circle at top left, rgba(185, 28, 28, 0.08), transparent 26%), radial-gradient(circle at top right, rgba(234, 88, 12, 0.1), transparent 24%), linear-gradient(180deg, #fcf8f4 0%, #f8f1eb 100%);
    --auth-card-bg: rgba(255, 255, 255, 0.96);
    --auth-card-border: rgba(127, 29, 29, 0.08);
    --auth-text: #1f2937;
    --auth-muted: #7c6f68;
    --auth-line: rgba(148, 163, 184, 0.18);
    --auth-input-bg: #fff;
    --auth-input-border: rgba(185, 28, 28, 0.14);
    --auth-input-focus: rgba(185, 28, 28, 0.12);
    --auth-accent-start: #f4b000;
    --auth-accent-end: #ea580c;
    --auth-primary: #991b1b;
    --auth-shadow: 0 24px 60px rgba(127, 29, 29, 0.12);
}

body {
    font-family: "Roboto", sans-serif;
}

.public-auth-page {
    min-height: calc(100vh - 120px);
    padding: 2.75rem 0;
    /* background: var(--auth-page-bg); */
}

.public-auth-shell {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 180px);
}

.public-auth-card {
    width: min(100%, 540px);
    padding: 1rem;
    border: 1px solid var(--auth-card-border);
    border-radius: 2rem;
    background: var(--auth-card-bg);
    box-shadow: var(--auth-shadow);
}

.public-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    padding: 0.38rem;
    border-radius: 999px;
    background: #2b1d1b;
}

.public-auth-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

    .public-auth-tab.is-active {
        color: #3f2205;
        background: linear-gradient(90deg, var(--auth-accent-start), var(--auth-accent-end));
        box-shadow: 0 8px 22px rgba(234, 88, 12, 0.24);
    }

.public-auth-body {
    padding: 0.55rem 1.15rem 0.8rem;
}

.public-auth-title {
    margin: 0 0 0.8rem;
    text-align: center;
    font-size: 27px;
    line-height: 1.04;
    font-weight: 800;
    color: var(--auth-primary);
}

.public-auth-subtitle {
    margin: 0 auto 1.1rem;
    max-width: 27rem;
    text-align: center;
    color: var(--auth-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.public-auth-form .form-label {
    margin-bottom: 0.5rem;
    color: var(--auth-primary);
    font-weight: 700;
}

.public-auth-input {
    position: relative;
}

.public-auth-input-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #b45309;
    pointer-events: none;
    z-index: 2;
}

.public-auth-form .form-control {
    min-height: 3.55rem;
    border: 1px solid var(--auth-input-border);
    border-radius: 1rem;
    background: var(--auth-input-bg);
    color: var(--auth-text);
    padding: 0.85rem 1rem 0.85rem 3rem;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .public-auth-form .form-control:focus {
        border-color: rgba(185, 28, 28, 0.24);
        box-shadow: 0 0 0 3px var(--auth-input-focus);
    }

    .public-auth-form .form-control::placeholder {
        color: #9ca3af;
    }

.public-auth-form .form-check-input {
    border-color: rgba(148, 163, 184, 0.5);
}

    .public-auth-form .form-check-input:checked {
        background-color: #b45309;
        border-color: #b45309;
    }

.public-auth-form .form-check-label {
    color: var(--auth-muted);
}

.public-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.public-auth-forgot {
    color: #b45309;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.public-auth-forgot:hover {
    color: #92400e;
}

.public-auth-submit,
.public-auth-social {
    width: 100%;
    min-height: 3.5rem;
    border-radius: 1rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.public-auth-submit {
    border: 0;
    color: #3f2205;
    background: linear-gradient(90deg, var(--auth-accent-start), var(--auth-accent-end));
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.18);
}

.public-auth-submit:hover,
.public-auth-social:hover {
    transform: translateY(-1px);
}

.public-auth-submit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.public-auth-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    border: 1px solid var(--auth-line);
    background: #fff;
    color: var(--auth-text);
}

.public-auth-social-icon {
    color: #ea580c;
}

.public-auth-divider {
    position: relative;
    margin: 1.25rem 0;
    text-align: center;
}

    .public-auth-divider::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        border-top: 1px solid var(--auth-line);
    }

    .public-auth-divider span {
        position: relative;
        display: inline-block;
        padding: 0 0.85rem;
        background: var(--auth-card-bg);
        color: var(--auth-muted);
    }

.public-auth-validation {
    border-radius: 1rem;
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    padding: 0.85rem 1rem;
}

    .public-auth-validation ul {
        margin: 0;
        padding-left: 1rem;
    }

.public-auth-footer {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 1.35rem;
    /* padding-top: 1.15rem; */
    /* border-top: 1px solid var(--auth-line); */
    color: var(--auth-muted);
}

    .public-auth-footer a {
        color: #b45309;
        font-weight: 700;
        text-decoration: none;
    }

        .public-auth-footer a:hover {
            color: #92400e;
        }

.public-auth-note {
    margin: 1rem 0 0;
    text-align: center;
    color: #9a8e87;
    font-size: 0.9rem;
    line-height: 1.6;
}

.public-auth-status-icon {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    border-radius: 999px;
    background: rgba(180, 83, 9, 0.1);
    color: #b45309;
    font-size: 1.6rem;
}

@media (max-width: 575.98px) {
    .public-auth-page {
        padding: 1rem 0;
    }

    .public-auth-card {
        border-radius: 1.35rem;
        padding: 0.8rem;
    }

    .public-auth-body {
        padding: 0.35rem 0.55rem 0.55rem;
    }

    .public-auth-title {
        font-size: 2rem;
    }

    .public-auth-options {
        align-items: flex-start;
        flex-direction: column;
    }
}
