/* VectraHub Auth Pages V2 - Modern Design */

/* ==========================================
   CSS Variables / Design Tokens
   ========================================== */
:root {
    --auth-primary: #00ffd1;
    --auth-primary-dark: #00e5bb;
    --auth-bg-dark: #0a1015;
    --auth-bg-teal: #0d1a1a;
    --auth-card-dark: #111a1f;
    --auth-surface: rgba(17, 26, 31, 0.95);
    --auth-border: rgba(0, 255, 209, 0.12);
    --auth-border-subtle: rgba(255, 255, 255, 0.05);
    --auth-text: #f8fafc;
    --auth-text-muted: #7a8c99;
    --auth-input-bg: rgba(10, 16, 21, 0.8);
    --auth-input-border: rgba(0, 255, 209, 0.15);
    --auth-radius: 1rem;
    --auth-font: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* ==========================================
   Page Background
   ========================================== */
.auth-page-v2 {
    min-height: 100vh;
    background: linear-gradient(180deg, #0a1015 0%, #0d1a1a 50%, #070b0e 100%);
    font-family: var(--auth-font);
    color: var(--auth-text);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Centered teal glow effect */
.auth-page-v2::before {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 80%;
    background: radial-gradient(ellipse at center top, rgba(0, 255, 209, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Background Blobs */
.auth-bg-blob-1 {
    position: fixed;
    top: 15%;
    left: 8%;
    width: 400px;
    height: 400px;
    background-color: rgba(0, 255, 209, 0.04);
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.auth-bg-blob-2 {
    position: fixed;
    bottom: 10%;
    right: 8%;
    width: 350px;
    height: 350px;
    background-color: rgba(0, 255, 209, 0.03);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================
   Header
   ========================================== */
.auth-header-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .auth-header-v2 {
        padding: 1.5rem 3rem;
    }
}

.auth-header-v2-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.auth-header-v2-brand img {
    height: 32px;
    width: 32px;
}

.auth-header-v2-brand span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--auth-text);
}

.auth-header-v2-brand .accent {
    color: var(--auth-primary);
}

.auth-header-v2-link {
    font-size: 0.875rem;
    color: var(--auth-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-header-v2-link:hover {
    color: var(--auth-text);
}

/* ==========================================
   Main Content
   ========================================== */
.auth-main-v2 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    z-index: 10;
}

/* ==========================================
   Auth Card (Glass Panel)
   ========================================== */
.auth-card-v2 {
    width: 100%;
    max-width: 480px;
    background: var(--auth-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--auth-border);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Tab Switcher (for combined login/register)
   ========================================== */
.auth-tabs-v2 {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.15);
}

.auth-tab-v2 {
    flex: 1;
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--auth-text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
}

.auth-tab-v2:hover {
    color: var(--auth-text);
}

.auth-tab-v2.active {
    color: var(--auth-primary);
    border-bottom-color: var(--auth-primary);
}

/* ==========================================
   Auth Card Content
   ========================================== */
.auth-card-v2-content {
    padding: 2rem;
}

@media (min-width: 640px) {
    .auth-card-v2-content {
        padding: 2.5rem;
    }
}

/* Header Text */
.auth-title-v2 {
    font-size: 1.75rem;
    font-weight: 800;
    text-align: center;
    color: var(--auth-text);
    margin-bottom: 0.5rem;
}

.auth-subtitle-v2 {
    text-align: center;
    color: var(--auth-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

/* ==========================================
   Social Login Buttons
   ========================================== */
.auth-social-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.auth-social-btn-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 44px;
    padding: 0 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--auth-text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.auth-social-btn-v2:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--auth-text);
}

.auth-social-btn-v2 svg {
    width: 20px;
    height: 20px;
}

/* Divider */
.auth-divider-v2 {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.auth-divider-v2::before,
.auth-divider-v2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider-v2 span {
    padding: 0 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--auth-text-muted);
}

/* ==========================================
   Form Styles
   ========================================== */
.auth-form-v2 {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-field-v2 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-label-v2 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--auth-text-muted);
    margin-left: 0.25rem;
}

.auth-input-wrapper-v2 {
    position: relative;
}

.auth-input-icon-v2 {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    font-size: 1.25rem;
    pointer-events: none;
    transition: color 0.2s;
}

.auth-input-v2 {
    width: 100%;
    height: 48px;
    padding: 0 1rem 0 3rem;
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-input-border);
    border-radius: 0.75rem;
    color: var(--auth-text);
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.auth-input-v2::placeholder {
    color: var(--auth-text-muted);
}

.auth-input-v2:focus {
    outline: none;
    background: rgba(13, 17, 23, 0.9);
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 209, 0.15);
}

.auth-input-v2:focus+.auth-input-icon-v2,
.auth-input-wrapper-v2:focus-within .auth-input-icon-v2 {
    color: var(--auth-primary);
}

/* Password Toggle */
.auth-password-toggle-v2 {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--auth-text-muted);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.25rem;
    transition: color 0.2s;
}

.auth-password-toggle-v2:hover {
    color: var(--auth-text);
}

/* Helper Text */
.auth-helper-v2 {
    font-size: 0.75rem;
    color: var(--auth-text-muted);
    margin-left: 0.25rem;
}

/* ==========================================
   Password Strength
   ========================================== */
.auth-password-strength-v2 {
    display: flex;
    gap: 0.25rem;
    height: 4px;
    margin-top: 0.5rem;
}

.auth-password-strength-v2 .bar {
    flex: 1;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    transition: background 0.3s;
}

.auth-password-strength-v2.weak .bar:nth-child(1) {
    background: #ef4444;
}

.auth-password-strength-v2.fair .bar:nth-child(1),
.auth-password-strength-v2.fair .bar:nth-child(2) {
    background: #f59e0b;
}

.auth-password-strength-v2.good .bar:nth-child(1),
.auth-password-strength-v2.good .bar:nth-child(2),
.auth-password-strength-v2.good .bar:nth-child(3) {
    background: #22c55e;
}

.auth-password-strength-v2.strong .bar {
    background: var(--auth-primary);
}

.auth-password-strength-text-v2 {
    font-size: 0.75rem;
    text-align: right;
    margin-top: 0.25rem;
}

.auth-password-strength-text-v2.weak {
    color: #ef4444;
}

.auth-password-strength-text-v2.fair {
    color: #f59e0b;
}

.auth-password-strength-text-v2.good {
    color: #22c55e;
}

.auth-password-strength-text-v2.strong {
    color: var(--auth-primary);
}

/* ==========================================
   Actions Row
   ========================================== */
.auth-actions-row-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
}

.auth-checkbox-v2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.auth-checkbox-v2 input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--auth-input-border);
    background: var(--auth-input-bg);
    cursor: pointer;
    accent-color: var(--auth-primary);
}

.auth-checkbox-v2 span {
    color: var(--auth-text-muted);
}

.auth-link-v2 {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.auth-link-v2:hover {
    opacity: 0.8;
    color: var(--auth-primary);
}

/* ==========================================
   Submit Button
   ========================================== */
.auth-submit-v2{
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--auth-primary);
    color: #0d1117 !important;
    font-size: 0.9375rem;
    font-weight: 700;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 20px rgba(0, 255, 209, 0.3);
}
.auth-submit-v2 span{
    color: #0d1117 !important;
}

.auth-submit-v2:hover {
    background: var(--auth-primary-dark);
    transform: translateY(-2px);
}

.auth-submit-v2:active {
    transform: scale(0.98);
}

.auth-submit-v2:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-submit-v2 .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   Footer Links
   ========================================== */
.auth-footer-v2 {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--auth-text-muted);
    margin-top: 1.5rem;
}

.auth-footer-v2 a {
    color: var(--auth-primary);
    font-weight: 500;
    text-decoration: none;
    margin-left: 0.25rem;
}

.auth-footer-v2 a:hover {
    text-decoration: underline;
}

/* ==========================================
   Alerts
   ========================================== */
.auth-alert-v2 {
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
}

.auth-alert-v2.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.auth-alert-v2.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.auth-alert-v2.warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.auth-alert-v2-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ==========================================
   Benefits List (for registration)
   ========================================== */
.auth-benefits-v2 {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.auth-benefits-v2 li {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--auth-text-muted);
}

.auth-benefits-v2 li::before {
    content: "✓";
    color: var(--auth-primary);
    font-weight: bold;
}

/* ==========================================
   Utilities
   ========================================== */
.hidden {
    display: none !important;
}

.d-none {
    display: none !important;
}