.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #1a1a2e;
    padding: 20px;
}

.auth-card {
    background: #16213e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    color: #e0e0e0;
}

.auth-logo {
    font-family: monospace;
    font-size: 2rem;
    color: #00ff88;
    text-align: center;
    margin: 0 0 20px 0;
}

.auth-card h2 {
    text-align: center;
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 1.4rem;
}

.auth-subtitle {
    text-align: center;
    color: #999;
    margin: 0 0 20px 0;
    font-size: 0.9rem;
}

.auth-form {
    margin: 20px 0;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    color: #ccc;
    font-size: 0.85rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    background: #0f0f23;
    border: 1px solid #444;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: #00ff88;
}

.password-wrapper {
    position: relative;
    display: flex;
}

.password-wrapper input {
    flex: 1;
    padding-right: 60px !important;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 4px 8px;
}

.password-toggle:hover {
    color: #00ff88;
}

.password-strength {
    margin-top: 8px;
}

.strength-meter {
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s, background-color 0.3s;
    border-radius: 2px;
}

.strength-label {
    font-size: 0.75rem;
    margin-top: 4px;
    display: block;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}

.auth-btn:not(.secondary) {
    background: #00ff88;
    color: #000;
    font-weight: 600;
}

.auth-btn:not(.secondary):hover:not(:disabled) {
    opacity: 0.9;
}

.auth-btn.secondary {
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
}

.auth-btn.secondary:hover:not(:disabled) {
    border-color: #00ff88;
    color: #00ff88;
}

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

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #333;
}

.auth-divider span {
    background: #16213e;
    padding: 0 12px;
    position: relative;
    color: #888;
    font-size: 0.85rem;
}

.magic-link-text {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    margin: 0 0 12px 0;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: #00ff88;
    text-decoration: none;
    font-size: 0.85rem;
    margin: 0 8px;
}

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

.auth-error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.auth-success {
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid #27ae60;
    color: #27ae60;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

/* Verification confirmation state */
.verification-state {
    text-align: center;
}

.verification-state h2 {
    color: #fff;
    margin: 0 0 16px 0;
}

.verification-msg {
    color: #ccc;
    font-size: 0.95rem;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.verification-msg strong {
    color: #00ff88;
}

.verification-hint {
    color: #888;
    font-size: 0.85rem;
    margin: 0 0 24px 0;
}

/* Dev email preview */
.dev-email-preview {
    background: #0f0f23;
    border: 1px dashed #555;
    border-radius: 4px;
    padding: 16px;
    margin: 16px 0;
    text-align: left;
}

.dev-email-preview a {
    color: #00ff88;
}

.dev-email-label {
    color: #f39c12;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px 0;
}

/* User email in sidebar footer */
.user-email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-size: 0.7rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Account settings page */
.account-info {
    margin-bottom: 24px;
}

.account-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
}

.account-info-label {
    color: #888;
}

.account-info-value {
    color: #e0e0e0;
}

.account-section-title {
    color: #fff;
    font-size: 1.1rem;
    margin: 24px 0 8px 0;
}

.account-hint {
    color: #888;
    font-size: 0.85rem;
    margin: 0 0 16px 0;
}

.account-help {
    color: #999;
    font-size: 0.85rem;
    line-height: 1.6;
}

.account-help ol {
    padding-left: 20px;
    margin: 8px 0;
}

.account-help p {
    margin: 8px 0;
}
