/**
 * Shared styles for public auth and account pages (login, register, forgot password, customize, etc.)
 * Use this file for a unified look across all account-related views.
 */

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(160deg, #0f172a 0%, #0a0a0c 100%);
    color: #e2e8f0;
    min-height: 100vh;
}

.glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.input-field {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    font-size: 1rem;
    line-height: 1.5;
    color: #f1f5f9;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-field::placeholder {
    color: #64748b;
}
.input-field:hover {
    border-color: rgba(255, 255, 255, 0.18);
}
.input-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.btn-primary {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    color: #fff;
    background: #2563eb;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    transition: background 0.2s, transform 0.05s, box-shadow 0.2s;
}
.btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}
.btn-primary:active {
    transform: scale(0.99);
}
.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
}
.btn-primary:disabled,
.btn-primary.is-loading {
    cursor: not-allowed;
    opacity: 0.85;
    pointer-events: none;
}
.btn-primary.is-loading {
    position: relative;
    color: transparent !important;
}
.btn-primary.is-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-ghost {
    display: inline-block;
    padding: 10px 18px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.link:hover {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Auth page specific */
.auth-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}
.auth-subtitle {
    font-size: 0.9375rem;
    color: #94a3b8;
    margin: 0 0 24px 0;
    line-height: 1.45;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.auth-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
}
.auth-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.auth-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
}
.auth-checkbox-label {
    font-size: 0.9375rem;
    color: #94a3b8;
    cursor: pointer;
}
.auth-links {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9375rem;
}
.auth-link-secondary {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.auth-link-secondary:hover {
    color: #fff;
}
.auth-footer-text {
    margin: 24px 0 0 0;
    text-align: center;
    font-size: 0.9375rem;
    color: #94a3b8;
}
.auth-footer-text .link {
    margin-left: 2px;
}

/* Auth tabs (sign in / register on same page) */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}
.auth-tab {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #94a3b8;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.auth-tab:hover {
    color: #e2e8f0;
}
.auth-tab-active {
    color: #fff;
    border-bottom-color: #3b82f6;
}
.auth-tab-active:hover {
    color: #fff;
}
.auth-tab-panel {
    animation: auth-tab-fade 0.2s ease;
}
@keyframes auth-tab-fade {
    from { opacity: 0.7; }
    to { opacity: 1; }
}
.auth-tab-link {
    cursor: pointer;
}
