/* Auth Page Styles - TikTok-Style Mobile-First */

.auth-container {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.auth-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8) var(--space-6);
    box-shadow: var(--shadow-lg);
}

.auth-card h1 {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-2);
    text-align: center;
    color: var(--text-primary);
}

.auth-card .subtitle {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    text-align: center;
    margin-bottom: var(--space-6);
}

.oauth-section {
    margin-top: var(--space-4);
}

.oauth-intro {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-4);
}

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-base);
}

.btn-oauth:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--spacex-blue);
    box-shadow: 0 0 24px rgba(255, 51, 102, 0.3);
}

.oauth-footer {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-4);
    line-height: 1.4;
}

/* Profile Setup - Minimal TikTok Style */

.profile-setup {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.profile-setup__card {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(40px);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 32px;
}

@media (max-width: 480px) {
    .profile-setup__card {
        padding: 32px 24px;
        border-radius: 20px;
    }
}

.profile-setup__title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: -0.02em;
}

@media (max-width: 480px) {
    .profile-setup__title {
        font-size: 24px;
        margin-bottom: 24px;
    }
}

.profile-setup__error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 12px;
    color: #ff3366;
    font-size: 14px;
    margin-bottom: 20px;
}

.profile-setup__error svg {
    flex-shrink: 0;
    color: #ff3366;
}

.profile-setup__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-setup__input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.profile-setup__input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: #ff3366;
    box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.1);
}

.profile-setup__input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.profile-setup__status {
    min-height: 20px;
    font-size: 13px;
    margin-top: -8px;
}

.profile-setup__preview {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: -8px;
    text-align: center;
}

.profile-setup__preview span {
    color: #ff3366;
    font-weight: 600;
}

.profile-setup__btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #ff3366, #ff6b9d);
    border: none;
    border-radius: 16px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    box-shadow: 0 8px 24px rgba(255, 51, 102, 0.3);
}

.profile-setup__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 51, 102, 0.5);
}

.profile-setup__btn:active {
    transform: translateY(0);
}

/* HTMX Status Messages */

.username-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.username-available {
    color: #00ff88;
    font-size: 13px;
    font-weight: 500;
}

.username-error {
    color: #ff3366;
    font-size: 13px;
    font-weight: 500;
}

/* Login Page */

.auth-container {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(18, 18, 24, 0.6);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px 32px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

@media (max-width: 480px) {
    .auth-card {
        padding: 40px 24px;
    }
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 12px;
}

.auth-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.5;
}

.error-notice {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.error-notice p {
    font-size: 14px;
    color: #ff6b9d;
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-oauth:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #4285F4;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(66, 133, 244, 0.3);
}

.btn-oauth:active {
    transform: translateY(0);
}

.auth-footer {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    line-height: 1.5;
}

.auth-footer a {
    color: #ff3366;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.invite-notice {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.invite-notice p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-align: center;
}

.error-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.error-modal-content {
    background: rgba(18, 18, 24, 0.95);
    border: 1px solid rgba(255, 51, 102, 0.5);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
}

.error-modal h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ff3366;
    margin-bottom: 16px;
}

.error-modal p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 24px;
}

.error-modal code {
    display: block;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    font-family: monospace;
    font-size: 13px;
    color: #ff6b9d;
    margin-bottom: 24px;
    word-break: break-all;
}

.error-modal button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff3366, #ff6b9d);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.error-modal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 51, 102, 0.4);
}

/* Inline style extractions */

.input-lowercase {
    text-transform: lowercase;
}

.input-uppercase {
    text-transform: uppercase;
}

.oauth-btn-label {
    font-size: var(--text-sm);
}

.oauth-footer-link {
    color: var(--spacex-blue);
    text-decoration: none;
}
