/* ==========================================================================
   Sol Caribe Group LLC - Auth Pages (login.html) Styles
   ========================================================================== */

.auth-body {
    background: var(--color-bg-dark-alt);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 2rem 0;
}

.auth-bg-deco {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(233,196,106,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(18,85,94,0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.auth-page {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Header / logo */
.auth-header { text-align: center; }
.auth-logo-link { display: inline-block; }
.auth-logo {
    height: 64px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
    filter: brightness(1.05);
}

/* Card */
.auth-card {
    width: 100%;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(233,196,106,0.15);
    border-radius: 20px;
    padding: 2rem 2.5rem 2rem;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03) inset;
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 0;
    background: rgba(0,0,0,0.25);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 1.75rem;
}
.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}
.auth-tab.active {
    background: var(--color-accent);
    color: var(--color-bg-dark-alt);
    box-shadow: 0 4px 12px rgba(233,196,106,0.3);
}

/* Panel */
.auth-panel { display: none; }
.auth-panel.active { display: block; }

.auth-panel-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.auth-panel-header h1 {
    font-family: var(--font-title);
    font-size: 1.65rem;
    color: var(--color-text-white);
    margin-bottom: 0.35rem;
    font-weight: 600;
}
.auth-panel-header p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Google button */
.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: var(--color-text-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1.25rem;
}
.btn-google:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: rgba(255,255,255,0.3);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

/* Form fields */
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-field { display: flex; flex-direction: column; gap: 0.4rem; }
.auth-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.auth-field input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    color: var(--color-text-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
}
.auth-field input:focus {
    border-color: var(--color-accent);
    background: rgba(255,255,255,0.09);
    box-shadow: 0 0 0 3px rgba(233,196,106,0.12);
}
.auth-field input::placeholder { color: rgba(255,255,255,0.25); }
.auth-field-error {
    display: none;
    color: #ff8a80;
    font-size: 0.78rem;
    font-weight: 500;
}

.auth-password-wrap { position: relative; }
.auth-password-wrap input { padding-right: 3rem; }
.toggle-pw {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    transition: color 0.2s;
    padding: 0.25rem;
}
.toggle-pw:hover { color: var(--color-accent); }
.toggle-pw svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Error box */
.auth-error-box {
    background: rgba(231, 111, 81, 0.15);
    border: 1px solid rgba(231,111,81,0.35);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    color: #ff8a80;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Submit button */
.auth-submit {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.auth-submit .btn-loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Seal */
.auth-seal {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.35);
    font-size: 0.78rem;
}
.auth-seal svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: var(--color-accent);
    opacity: 0.7;
}

/* Back link */
.auth-back-link { font-size: 0.85rem; }

/* Terms/Privacy notice on register */
.auth-terms-notice {
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.55);
    text-align: center;
    margin: 0.25rem 0 0;
    padding: 0 0.5rem;
}
.auth-terms-notice a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}
.auth-terms-notice a:hover { color: #f5d98a; }
.auth-back-link a {
    color: rgba(255,255,255,0.4);
    transition: color 0.2s;
}
.auth-back-link a:hover { color: var(--color-accent); }

@media (max-width: 520px) {
    .auth-card { padding: 1.5rem 1.25rem; }
    .auth-panel-header h1 { font-size: 1.4rem; }
}
