/**
 * Auth Modal Styles — A Glória Eterna Store
 *
 * Modal de Login/Cadastro — versão refinada e elegante.
 */

/* ===== OVERLAY ===== */

.gloria-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gloria-auth-overlay.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

/* ===== BACKDROP ===== */

.gloria-auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

.gloria-auth-container {
    position: relative;
    width: 100%;
    max-width: 370px;
    margin: 1rem;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 1.4rem 1.4rem 1.2rem;
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.gloria-auth-overlay.is-open .gloria-auth-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

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

.gloria-auth-close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    background: transparent;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.gloria-auth-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}
.gloria-auth-close i { width: 15px; height: 15px; }

/* ===== BRAND ===== */

.gloria-auth-brand {
    text-align: center;
    margin-bottom: 1rem;
}
.gloria-auth-brand .gold-3d-text {
    font-size: 14px !important;
}

/* ===== TABS ===== */

.gloria-auth-tabs {
    display: flex;
    position: relative;
    background: #131313;
    border-radius: 6px;
    padding: 2px;
    margin-bottom: 1.15rem;
}

.gloria-auth-tab {
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 0.38rem 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #555;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.gloria-auth-tab.is-active {
    color: #131313;
}

.gloria-auth-tab-indicator {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(50% - 2px);
    height: calc(100% - 4px);
    background: linear-gradient(135deg, #9a7d2e 0%, #dbaf4a 40%, #f4e1b3 100%);
    border-radius: 5px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gloria-auth-tabs[data-active="register"] .gloria-auth-tab-indicator {
    transform: translateX(100%);
}

/* ===== PANELS ===== */

.gloria-auth-panel {
    display: none;
    animation: authPanelIn 0.3s ease forwards;
}

.gloria-auth-panel.is-active {
    display: block;
}

@keyframes authPanelIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

.gloria-auth-field {
    margin-bottom: 0.75rem;
}

.gloria-auth-field label {
    display: block;
    font-family: 'Ubuntu', system-ui, sans-serif;
    font-size: 10.5px;
    font-weight: 500;
    color: #777;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gloria-auth-input-wrap {
    display: flex;
    align-items: center;
    background: #131313;
    border: 1px solid #252525;
    border-radius: 6px;
    padding: 0 0.6rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gloria-auth-input-wrap:focus-within {
    border-color: #dbaf4a;
    box-shadow: 0 0 0 2px rgba(219, 175, 74, 0.1);
}

.gloria-auth-input-wrap > i,
.gloria-auth-input-wrap > svg {
    width: 14px;
    height: 14px;
    color: #444;
    flex-shrink: 0;
}
.gloria-auth-input-wrap > svg {
    stroke-width: 1.2 !important;
}

.gloria-auth-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ddd;
    font-family: 'Ubuntu', system-ui, sans-serif;
    font-size: 13px;
    padding: 0.55rem 0.5rem;
    outline: none;
    width: 100%;
}

.gloria-auth-input-wrap input::placeholder {
    color: #444;
    font-size: 12px;
}

/* Eye toggle */
.gloria-auth-eye {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #444;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.gloria-auth-eye:hover { color: #dbaf4a; }
.gloria-auth-eye i,
.gloria-auth-eye svg {
    width: 14px;
    height: 14px;
}
.gloria-auth-eye svg {
    stroke-width: 1.2 !important;
}

/* ===== MESSAGE ===== */

.gloria-auth-message {
    padding: 0.5rem 0.65rem;
    border-radius: 5px;
    font-family: 'Ubuntu', system-ui, sans-serif;
    font-size: 12px;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.gloria-auth-message.is-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.gloria-auth-message.is-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

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

.gloria-auth-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem;
    background: linear-gradient(135deg, #9a7d2e 0%, #dbaf4a 40%, #f4e1b3 100%);
    color: #131313;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.gloria-auth-submit:hover {
    opacity: 0.9;
}

.gloria-auth-submit:active {
    transform: scale(0.98);
}

.gloria-auth-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== REMEMBER / FORGOT ===== */

.gloria-auth-form .flex.items-center {
    font-size: 11px;
}
.gloria-auth-form .flex.items-center input[type="checkbox"] {
    width: 13px;
    height: 13px;
}

/* ===== FOOTER ===== */

.gloria-auth-footer {
    text-align: center;
    font-family: 'Ubuntu', system-ui, sans-serif;
    font-size: 10px;
    color: #444;
    margin-top: 1rem;
    line-height: 1.5;
}

.gloria-auth-footer a {
    color: #dbaf4a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gloria-auth-footer a:hover {
    color: #f4e1b3;
}

/* ===== MY ACCOUNT FORM-LOGIN PAGE ===== */

.gloria-form-login-page {
    max-width: 900px;
    margin: 0 auto;
}

.gloria-form-login-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .gloria-form-login-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.gloria-form-login-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 1.5rem;
}

.gloria-form-login-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #2a2a2a;
    position: relative;
}

.gloria-form-login-card h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #dbaf4a;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 480px) {
    .gloria-auth-container {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-width: 100%;
    }
}
