/* QA Jobs India Member Portal - Professional Styles */

:root {
    --primary: #0f172a;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --surface: #ffffff;
    --surface-elevated: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-focus: #3b82f6;
    --error: #dc2626;
    --error-bg: #fef2f2;
    --success: #059669;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.qaji-portal-container {
    width: 100%;
    max-width: 1100px;
    background: var(--surface);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    min-height: 600px;
    margin: 0 auto;
}

/* Brand Panel */
.qaji-brand-panel {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.qaji-brand-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    animation: qaji-pulse 8s ease-in-out infinite;
}

@keyframes qaji-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.qaji-brand-content {
    position: relative;
    z-index: 1;
}

.qaji-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.qaji-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.qaji-logo-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.qaji-logo-text {
    color: white;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.qaji-brand-headline {
    color: white;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.qaji-brand-subtext {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
}

.qaji-features {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qaji-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
}

.qaji-feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qaji-feature-icon svg {
    width: 16px;
    height: 16px;
    stroke: #60a5fa;
    stroke-width: 2;
    fill: none;
}

.qaji-brand-footer {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Form Panel */
.qaji-form-panel {
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--surface);
}

.qaji-form-header {
    margin-bottom: 32px;
}

.qaji-form-tabs {
    display: flex;
    gap: 8px;
    background: var(--surface-elevated);
    padding: 6px;
    border-radius: 12px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.qaji-tab-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.qaji-tab-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.qaji-tab-btn.active {
    color: var(--text-primary);
}

.qaji-tab-btn.active::before {
    opacity: 1;
    transform: scale(1);
}

.qaji-tab-btn span {
    position: relative;
    z-index: 1;
}

.qaji-tab-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.5);
}

.qaji-form-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.qaji-form-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
}

.qaji-form {
    display: none;
    animation: qaji-fadeIn 0.4s ease;
}

.qaji-form.active {
    display: block;
}

@keyframes qaji-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.qaji-form-group {
    margin-bottom: 20px;
}

.qaji-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.qaji-form-group label {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.qaji-input-wrapper {
    position: relative;
}

.qaji-input-wrapper input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--surface);
    transition: all 0.2s ease;
    outline: none;
}

.qaji-input-wrapper input:hover {
    border-color: #cbd5e1;
}

.qaji-input-wrapper input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.qaji-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.qaji-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.qaji-password-toggle:hover {
    color: var(--text-primary);
}

.qaji-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.qaji-checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.qaji-checkbox-wrapper label {
    margin: 0;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.qaji-forgot-link {
    margin-left: auto;
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.qaji-forgot-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.qaji-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.qaji-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.qaji-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.3);
}

.qaji-btn:hover::before {
    left: 100%;
}

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

.qaji-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.qaji-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: qaji-spin 0.8s linear infinite;
    display: none;
}

.qaji-btn.loading .qaji-spinner {
    display: block;
}

.qaji-btn.loading .qaji-btn-text {
    display: none;
}

@keyframes qaji-spin {
    to { transform: rotate(360deg); }
}

.qaji-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.qaji-divider::before,
.qaji-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.qaji-social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.qaji-social-btn {
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.qaji-social-btn:hover {
    border-color: var(--text-muted);
    background: var(--surface-elevated);
}

.qaji-social-btn svg {
    width: 20px;
    height: 20px;
}

.qaji-alert {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: none;
}

.qaji-alert.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.qaji-alert.error {
    background: var(--error-bg);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: var(--error);
}

.qaji-alert.success {
    background: #f0fdf4;
    border: 1px solid rgba(5, 150, 105, 0.2);
    color: var(--success);
}

.qaji-terms {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.qaji-terms a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.qaji-terms a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .qaji-portal-container {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .qaji-brand-panel {
        display: none;
    }

    .qaji-form-panel {
        padding: 40px 32px;
    }
}

@media (max-width: 480px) {
    .qaji-form-row {
        grid-template-columns: 1fr;
    }

    .qaji-social-login {
        grid-template-columns: 1fr;
    }
}
