/* ===========================
   TrendPilot Auth Pages CSS
   Dark Theme with Green Accents (#00ff88)
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0e27;
    color: #d1d4dc;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Auth Container ===== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* ===== Background Gradient ===== */
.auth-bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 136, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Auth Box ===== */
.auth-box {
    background: rgba(19, 23, 34, 0.95);
    border: 1px solid rgba(42, 46, 57, 0.8);
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

/* ===== Logo ===== */
.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #00ff88, #00c9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.auth-tagline {
    color: #8a8e99;
    font-size: 14px;
    font-weight: 400;
}

/* ===== Form ===== */
.auth-form {
    width: 100%;
}

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

/* ===== Form Group ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #d1d4dc;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    background: #1a1e2e;
    border: 1px solid #2a2e39;
    border-radius: 8px;
    color: #ffffff;
    transition: border-color 0.2s, background-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #00ff88;
    background: #22263a;
}

.form-group input::placeholder {
    color: #5a5e69;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #7a7e89;
    margin-top: 6px;
}

/* ===== Error & Success Messages ===== */
.error-message,
.success-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.error-message {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff6b6b;
}

.success-message {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.error-message.hidden,
.success-message.hidden {
    display: none;
}

/* ===== Password Strength ===== */
.password-strength {
    margin-bottom: 20px;
}

.password-strength.hidden {
    display: none;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #2a2e39;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

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

.strength-bar-fill.weak {
    width: 33%;
    background: #ff4444;
}

.strength-bar-fill.medium {
    width: 66%;
    background: #ffaa00;
}

.strength-bar-fill.strong {
    width: 100%;
    background: #00ff88;
}

.strength-text {
    font-size: 12px;
    color: #7a7e89;
}

/* ===== Buttons ===== */
.btn-primary {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #0a0e27;
    background: linear-gradient(135deg, #00ff88, #00c9ff);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-spinner {
    animation: spin 1s linear infinite;
}

.btn-spinner.hidden {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Links ===== */
.form-links {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.link-secondary {
    font-size: 14px;
    color: #8a8e99;
    text-decoration: none;
    transition: color 0.2s;
}

.link-secondary:hover {
    color: #d1d4dc;
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #2a2e39;
}

.form-footer p {
    font-size: 14px;
    color: #8a8e99;
}

.link-primary {
    color: #00ff88;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.link-primary:hover {
    opacity: 0.8;
}

/* ===== Verification Notice ===== */
.verification-notice {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.verification-notice.hidden {
    display: none;
}

.verification-notice p {
    color: #ffaa00;
    font-size: 14px;
    margin-bottom: 12px;
}

.btn-secondary {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #d1d4dc;
    background: transparent;
    border: 1px solid #2a2e39;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #3a3e49;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

/* ===== Auth Subtitle ===== */
.auth-subtitle {
    font-size: 14px;
    color: #8a8e99;
    text-align: center;
    margin-top: -16px;
    margin-bottom: 24px;
}

/* ===== Verify Email Page ===== */
.verify-status {
    text-align: center;
    padding: 40px 20px;
}

.verify-icon-container {
    margin-bottom: 24px;
}

.verify-spinner {
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 3px solid #2a2e39;
    border-top-color: #00ff88;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.verify-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 32px;
    font-weight: bold;
}

.verify-icon.success {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
}

.verify-icon.error {
    background: rgba(255, 68, 68, 0.15);
    color: #ff6b6b;
}

.verify-message {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 24px;
}

.verify-message.success {
    color: #00ff88;
}

.verify-message.error {
    color: #ff6b6b;
}

.verify-action {
    margin-top: 24px;
}

.verify-action p {
    color: #8a8e99;
    font-size: 14px;
    margin-bottom: 16px;
}

.verify-action .btn-primary,
.verify-action .btn-secondary {
    display: inline-block;
    text-decoration: none;
    margin-top: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .auth-box {
        padding: 32px 24px;
        max-width: 100%;
    }

    .auth-logo h1 {
        font-size: 28px;
    }

    .auth-title {
        font-size: 20px;
    }
}
