/* Shared Auth Styles for Login & Signup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #000000;
}

.auth-box {
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.auth-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.auth-logo-icon {
    width: 56px;
    height: 56px;
    background: #ffffff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
}

.auth-logo-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 2.5;
}

.auth-box h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
}

.auth-subtitle {
    font-size: 0.8rem;
    color: #666666;
    margin: 0 0 2rem 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.auth-input-group {
    text-align: left;
}

.auth-input-group label {
    display: none;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap > svg {
    position: absolute;
    left: 0.875rem;
    width: 16px;
    height: 16px;
    color: #555555;
    pointer-events: none;
}

.auth-input-wrap input {
    width: 100%;
    padding: 0.8rem 0.875rem 0.8rem 2.5rem;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.85rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

.auth-input-wrap input::placeholder {
    color: #444444;
}

.auth-input-wrap input:focus {
    outline: none;
    border-color: #333333;
}

.auth-input-wrap .toggle-password {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: #555555;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-input-wrap .toggle-password:hover {
    color: #ffffff;
}

.auth-input-wrap .toggle-password svg {
    position: static;
    width: 16px;
    height: 16px;
}

.auth-btn {
    width: 100%;
    padding: 0.8rem;
    background: #ffffff;
    border: none;
    border-radius: 6px;
    color: #000000;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    font-family: inherit;
}

.auth-btn:hover:not(:disabled) {
    background: #e0e0e0;
}

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

.auth-btn .btn-text {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.auth-btn .btn-loader {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.auth-btn svg {
    width: 16px;
    height: 16px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: #333333;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #1a1a1a;
}

.auth-footer {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #666666;
}

.auth-footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

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

.google-btn {
    width: 100%;
    padding: 0.8rem;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: inherit;
}

.google-btn:hover:not(:disabled) {
    background: #111111;
    border-color: #333333;
}

.google-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-error {
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    background: rgba(255, 68, 68, 0.08);
    border: 1px solid rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.auth-success {
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
