/* Padrão compartilhado de telas de formulário (login, registrar, resetar senha).
   Regras exclusivas de cada tela ficam no CSS da própria página. */

.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 250px);
    padding: 3rem 1rem;
}

.auth-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    max-width: 960px;
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 60px -20px rgba(30, 38, 109, 0.25);
    overflow: hidden;
}

.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 2.5rem;
    background: linear-gradient(155deg, #1e266d 0%, #2b3494 55%, #ff6c02 150%);
    color: #ffffff;
    min-width: 0;
    overflow: hidden;
}

.auth-brand::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -90px;
    top: -90px;
    border-radius: 50%;
    background: rgba(255, 108, 2, 0.35);
    filter: blur(10px);
}

.auth-brand::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    left: -80px;
    bottom: -100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.auth-logo {
    position: relative;
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.auth-brand-title {
    position: relative;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
}

.auth-brand-subtitle {
    position: relative;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: -1rem 0 0 0;
}

.auth-features {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.92);
}

.auth-features li span {
    min-width: 0;
    flex: 1;
}

.auth-features i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.8125rem;
}

.auth-card {
    padding: 3rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e266d;
    margin: 0 0 0.375rem 0;
}

.auth-subtitle {
    font-size: 0.9375rem;
    color: #7d838a;
    margin: 0 0 1.75rem 0;
}

.auth-field {
    margin-bottom: 1.25rem;
}

.auth-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #515867;
    margin-bottom: 0.4rem;
}

.auth-field label i {
    color: #ff6c02;
    width: 1.1rem;
    text-align: center;
    margin-right: 0.35rem;
}

.auth-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: #7d838a;
}

.auth-fields-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

.auth-input,
.auth-select {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #d0dae2;
    border-radius: 12px;
    background-color: #f9f9f9;
    color: #1e266d;
    font-size: 0.9375rem;
    font-family: "Open Sans", sans-serif;
    transition: all 0.2s;
}

.auth-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23515867' d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.25rem;
}

.auth-input:focus,
.auth-select:focus {
    outline: none;
    border-color: #ff6c02;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 108, 2, 0.12);
}

.auth-btn-primary {
    display: block;
    width: 100%;
    padding: 0.9rem 1.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ff6c02;
    border-radius: 32px;
    background-color: #ff6c02;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-btn-primary:hover {
    background-color: transparent;
    color: #ff6c02;
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.auth-btn-link {
    border: none;
    background: none;
    padding: 0.25rem;
    color: #1d79fb;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.auth-btn-link:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #7d838a;
    font-size: 0.75rem;
    margin: 1.75rem 0 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #d0dae2;
}

.auth-divider span {
    padding: 0 0.75rem;
}

.auth-btn-outline {
    display: block;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border: 1px solid #ff6c02;
    border-radius: 32px;
    background-color: transparent;
    color: #ff6c02;
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.auth-btn-outline:hover {
    background-color: #ff6c02;
    color: #ffffff;
    text-decoration: none;
}

.auth-card .alert {
    flex: none;
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.auth-checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #515867;
    margin-bottom: 1.25rem;
    cursor: pointer;
}

.auth-checkbox-field input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: #ff6c02;
    cursor: pointer;
}

.is-hidden {
    display: none !important;
}

#loading:not(:empty) {
    margin-top: 1rem;
    text-align: center;
}

@media (max-width: 767px) {
    .auth-wrap {
        grid-template-columns: minmax(0, 1fr);
        border-radius: 20px;
    }

    .auth-brand {
        padding: 2.25rem 1.75rem;
        gap: 1.25rem;
    }

    .auth-brand-subtitle {
        margin-top: -0.5rem;
    }

    .auth-card {
        padding: 2.25rem 1.75rem;
    }

    .auth-section {
        padding: 1.5rem 1rem;
    }

    .auth-fields-2col {
        grid-template-columns: 1fr;
    }
}
