/* ============================================================
   AUTH PAGES - COMPREHENSIVE REDESIGN
   Based on CRCA App Theme
   ============================================================ */

/* CSS Variables - Matching App Theme */
:root {
    /* Primary Colors - Updated to match app theme */
    --auth-primary: #138971;
    --auth-primary-dark: #11826c;
    --auth-primary-light: #1abc9c;
    --auth-primary-bg: rgba(22, 160, 133, 0.1);
    
    /* Secondary Colors */
    --auth-secondary: #2c3e50;
    --auth-secondary-light: #34495e;
    
    /* Status Colors */
    --auth-success: #27ae60;
    --auth-success-bg: rgba(39, 174, 96, 0.1);
    --auth-warning: #f39c12;
    --auth-warning-bg: rgba(243, 156, 18, 0.1);
    --auth-danger: #e74c3c;
    --auth-danger-bg: rgba(231, 76, 60, 0.1);
    --auth-info: #3498db;
    --auth-info-bg: rgba(52, 152, 219, 0.1);
    
    /* Neutral Colors - Updated for consistency */
    --auth-white: #ffffff;
	--auth-light: #f8f9fa;
    --auth-light-gray: #ecf0f1;
    --auth-gray: #95a5a6;
    --auth-dark-gray: #7f8c8d;
    --auth-dark: #2c3e50;
    --auth-text: #2c3e50;
    --auth-text-muted: #7f8c8d;
    --auth-border: #e1e8ed;
    --auth-border-light: #f1f3f4;
    
    /* App-specific colors */
    --auth-page-bg: #f0f0f0;
    --auth-container-bg: #2c3e50;
    
    /* Shadows */
    --auth-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --auth-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --auth-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --auth-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    
    /* Gradients */
    --auth-gradient-primary: linear-gradient(135deg, #16a085 0%, #138d75 100%);
    --auth-gradient-secondary: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --auth-gradient-light: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
    
    /* Typography */
    --auth-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --auth-font-size-xs: 0.75rem;
    --auth-font-size-sm: 0.875rem;
    --auth-font-size-base: 1rem;
    --auth-font-size-lg: 1.125rem;
    --auth-font-size-xl: 1.25rem;
    --auth-font-size-2xl: 1.5rem;
    --auth-font-size-3xl: 1.875rem;
    
    /* Spacing */
    --auth-space-1: 0.25rem;
    --auth-space-2: 0.5rem;
    --auth-space-3: 0.75rem;
    --auth-space-4: 1rem;
    --auth-space-5: 1.25rem;
    --auth-space-6: 1.5rem;
    --auth-space-8: 2rem;
    --auth-space-10: 2.5rem;
    --auth-space-12: 3rem;
    
    /* Border Radius */
    --auth-radius-sm: 0.375rem;
    --auth-radius: 0.5rem;
    --auth-radius-md: 0.75rem;
    --auth-radius-lg: 1rem;
    --auth-radius-xl: 1.5rem;
    --auth-radius-full: 9999px;
    
    /* Transitions */
    --auth-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --auth-transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   BASE STYLES
   ============================================================ */

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

body.auth-body {
    font-family: var(--auth-font-family);
    background: #f0f0f0 !important;
    color: var(--auth-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Pattern */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #f0f0f0 !important;
}

.auth-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--auth-primary-bg) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, var(--auth-info-bg) 0%, transparent 50%);
    opacity: 0.6;
}

/* ============================================================
   MAIN CONTAINER
   ============================================================ */

.auth-container {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
    padding: var(--auth-space-6);
    position: relative;
    gap: var(--auth-space-4);
}

/* ============================================================
   AUTH CARD
   ============================================================ */

.auth-card {
	width: 100%;
    max-width: 800px;
    background: transparent !important;
    border-radius: var(--auth-radius-xl);
    box-shadow: var(--auth-shadow-xl);
	overflow: visible;
    position: relative;
    animation: authCardSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    min-height: 500px;
}

/* ============================================================
   SPLIT LAYOUT
   ============================================================ */

.auth-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    gap: 0;
    background: transparent;
    border-radius: var(--auth-radius-xl);
    overflow: hidden;
    box-shadow: var(--auth-shadow-xl);
}

/* Left Panel - Login Form */
.auth-left-panel {
    background: #ffffff;
    padding: var(--auth-space-6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.auth-left-panel h3 {
    font-size: var(--auth-font-size-xl);
    font-weight: 700;
    margin-bottom: var(--auth-space-4);
    text-align: left;
    color: #2c3e50;
    font-family: var(--auth-font-family);
    /* letter-spacing: 0.5px; */
    text-transform: uppercase;
    margin-bottom: var(--auth-space-4);
    padding: 0;
  
}
.auth-left-panel .auth-card {
    background: transparent !important;
    box-shadow: none !important;
    max-width: none;
    min-height: auto;
    animation: none;
}

/* Right Panel - Welcome Message */
.auth-right-panel {
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Welcome Content */
.welcome-content {
    text-align: center;
    color: #ffffff;
    position: relative;
    z-index: 1;
    padding: var(--auth-space-8);
    width: 100%;
}

.welcome-logo {
    margin-bottom: var(--auth-space-6);
}

.welcome-logo img {
    width: 80px;
    height: 80px;
    border-radius: var(--auth-radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: var(--auth-white);
    padding: var(--auth-space-3);
}

.welcome-content h1 {
    font-size: var(--auth-font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--auth-space-3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.welcome-content p {
    font-size: var(--auth-font-size-lg);
    opacity: 0.95;
    margin-bottom: var(--auth-space-8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.brand-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--auth-space-4);
    margin-bottom: var(--auth-space-6);
}

.brand-logo {
    height: 40px;
    opacity: 0.8;
    transition: var(--auth-transition);
    filter: brightness(0) invert(1);
}

.brand-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--auth-font-size-sm);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.auth-card-wide {
    max-width: 600px;
}

/* .auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--auth-gradient-primary);
} */

/* ============================================================
   AUTH HEADER
   ============================================================ */

.auth-header {
    background: var(--auth-gradient-primary);
    padding: var(--auth-space-8) var(--auth-space-6);
	text-align: center;
    color: var(--auth-white);
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    border-radius: var(--auth-radius-xl) var(--auth-radius-xl) 0 0;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: headerShimmer 3s ease-in-out infinite;
}

.auth-logo {
    margin-bottom: var(--auth-space-4);
    position: relative;
    z-index: 1;
}

.auth-logo img {
    width: 64px;
    height: 64px;
    border-radius: var(--auth-radius-lg);
    box-shadow: var(--auth-shadow);
    background: var(--auth-white);
    padding: var(--auth-space-2);
}

.auth-logo i {
    font-size: 3rem;
    color: var(--auth-white);
    text-shadow: var(--auth-shadow);
}

.auth-header h1 {
    font-size: var(--auth-font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--auth-space-2);
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-header h2 {
    font-size: var(--auth-font-size-2xl);
	font-weight: 600;
    margin-bottom: var(--auth-space-2);
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-header p {
    font-size: var(--auth-font-size-base);
    opacity: 0.95;
    position: relative;
    z-index: 1;
    margin: 0;
}

.auth-subtitle {
    font-size: var(--auth-font-size-sm) !important;
    opacity: 0.9 !important;
}

/* Header Variants */
.auth-header-warning {
    background: linear-gradient(135deg, var(--auth-warning) 0%, #e67e22 100%);
}

.auth-header-info {
    background: linear-gradient(135deg, var(--auth-info) 0%, #2980b9 100%);
}

/* ============================================================
   AUTH BODY
   ============================================================ */

.auth-body {
    padding: var(--auth-space-8) var(--auth-space-6);
    color: var(--auth-text);
    display: block;
    width: 100%;
    background: var(--auth-white);
    border-radius: 0 0 var(--auth-radius-xl) var(--auth-radius-xl);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */

.auth-form {
    margin-bottom: var(--auth-space-6);
}

.auth-form-group {
    margin-bottom: var(--auth-space-6);
}

.auth-form-group label {
	display: block;
    margin-bottom: var(--auth-space-2);
    color: #2c3e50 !important;
	font-weight: 600;
    font-size: var(--auth-font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-input-icon {
    position: relative;
}

.auth-input-icon input {
	width: 100%;
    padding: var(--auth-space-4) var(--auth-space-4) var(--auth-space-4) 3rem;
    border: 2px solid #e1e8ed !important;
    border-radius: var(--auth-radius-md);
    font-size: var(--auth-font-size-base);
    background: #ffffff !important;
    color: #2c3e50 !important;
    transition: var(--auth-transition);
    font-family: var(--auth-font-family);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.auth-input-icon input:focus {
	outline: none;
	border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px var(--auth-primary-bg);
    transform: translateY(-1px);
}

.auth-input-icon input::placeholder {
    color: #95a5a6 !important;
    font-size: var(--auth-font-size-sm);
}

.auth-input-icon i {
    position: absolute;
    left: var(--auth-space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    font-size: var(--auth-font-size-base);
    transition: var(--auth-transition);
}

.auth-input-icon input:focus + i {
    color: var(--auth-primary);
}

/* Password Field */
.auth-password-field {
    position: relative;
}

.auth-password-field input {
    width: 100%;
    padding: var(--auth-space-4) 3rem var(--auth-space-4) 3rem;
    border: 2px solid #e1e8ed !important;
    border-radius: var(--auth-radius-md);
    font-size: var(--auth-font-size-base);
    background: #ffffff !important;
    color: #2c3e50 !important;
    transition: var(--auth-transition);
    font-family: var(--auth-font-family);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.auth-password-field input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px var(--auth-primary-bg);
    transform: translateY(-1px);
}

.auth-password-field input::placeholder {
    color: #95a5a6 !important;
    font-size: var(--auth-font-size-sm);
}

/* Lock icon on the left */
.auth-password-field .fa-lock {
    position: absolute;
    left: var(--auth-space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    font-size: var(--auth-font-size-base);
    transition: var(--auth-transition);
    z-index: 2;
}

.auth-password-field input:focus + .fa-lock {
    color: var(--auth-primary);
}

/* Toggle password icon on the right */
.auth-password-field .toggle-password {
    position: absolute;
    right: var(--auth-space-4);
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--auth-text-muted);
    font-size: var(--auth-font-size-base);
    transition: var(--auth-transition);
    z-index: 2;
    padding: var(--auth-space-1);
    border-radius: var(--auth-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
}

.auth-password-field .toggle-password:hover {
    color: var(--auth-primary);
    background: var(--auth-primary-bg);
}

/* Verification Input */
.verification-input input {
    text-align: center;
    font-size: var(--auth-font-size-xl);
    font-weight: 600;
    letter-spacing: 0.5rem;
    padding: var(--auth-space-4);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.auth-btn {
	width: 100%;
    padding: var(--auth-space-4) var(--auth-space-6);
	border: none;
    border-radius: var(--auth-radius-md);
    font-size: var(--auth-font-size-base);
	font-weight: 600;
	cursor: pointer;
    transition: var(--auth-transition);
	text-align: center;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
    gap: var(--auth-space-2);
    font-family: var(--auth-font-family);
    position: relative;
    overflow: hidden;
}

.auth-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.5s;
}

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

.auth-btn-primary {
    background: #16a085;
    color: var(--auth-white);
    box-shadow: var(--auth-shadow);
}

.auth-btn-primary:hover {
    background: #107763;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--auth-shadow-lg);
}

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

.auth-btn-secondary {
    background: var(--auth-white);
    color: var(--auth-text);
    border: 2px solid var(--auth-border);
}

.auth-btn-secondary:hover {
    background: var(--auth-light);
    border-color: var(--auth-primary);
    color: var(--auth-primary);
    transform: translateY(-1px);
}
.sign-in-btn p {

    color: #ffffff;
}
.sign-in-btn:hover {
    background: var(--auth-primary-dark);
    color: var(--auth-white);
    transform: translateY(-1px);
    box-shadow: var(--auth-shadow-lg);
}

.auth-btn-outline {
	background: transparent;
	color: var(--auth-primary);
    border: 2px solid var(--auth-primary);
}

.auth-btn-outline:hover {
    background: var(--auth-primary);
    color: var(--auth-white);
    transform: translateY(-1px);
}

.auth-btn-google {
    background: #e4e4e4 !important;
    color: #2c3e50 !important;
    border: 0.5px solid #595a5a !important;
    box-shadow: var(--auth-shadow-sm);
    font-weight: 500;
}

.auth-btn-google:hover {
    background: var(--auth-light);
    border-color: var(--auth-primary);
    transform: translateY(-1px);
    box-shadow: var(--auth-shadow);
}

.auth-btn-google img {
    width: 20px;
    height: 20px;
}

.auth-btn-warning {
    background: linear-gradient(135deg, var(--auth-warning) 0%, #e67e22 100%);
    color: var(--auth-white);
    box-shadow: var(--auth-shadow);
}

.auth-btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--auth-shadow-lg);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ============================================================
   ALERTS
   ============================================================ */

.auth-alerts-container {
    margin-bottom: var(--auth-space-6);
}

.auth-alerts-popup {
    position: fixed;
    top: var(--auth-space-6);
    right: var(--auth-space-6);
    z-index: 1000;
    max-width: 400px;
    width: 100%;
}

.auth-alert {
    padding: var(--auth-space-4);
    border-radius: var(--auth-radius-md);
    margin-bottom: var(--auth-space-3);
    display: flex;
    align-items: flex-start;
    gap: var(--auth-space-3);
    border: 1px solid transparent;
    animation: alertSlideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
    box-shadow: var(--auth-shadow-lg);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.auth-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.auth-alert-success {
    background: var(--auth-success-bg);
    border-color: var(--auth-success);
    color: var(--auth-success);
}

.auth-alert-success::before {
    background: var(--auth-success);
}

.auth-alert-danger {
    background: var(--auth-danger-bg);
    border-color: var(--auth-danger);
    color: var(--auth-danger);
}

.auth-alert-danger::before {
    background: var(--auth-danger);
}

.auth-alert-warning {
    background: var(--auth-warning-bg);
    border-color: var(--auth-warning);
    color: var(--auth-warning);
}

.auth-alert-warning::before {
    background: var(--auth-warning);
}

.auth-alert-info {
    background: var(--auth-info-bg);
    border-color: var(--auth-info);
    color: var(--auth-info);
}

.auth-alert-info::before {
    background: var(--auth-info);
}

.alert-icon {
    flex-shrink: 0;
    font-size: var(--auth-font-size-lg);
    margin-top: 2px;
}

.alert-content {
    flex-grow: 1;
}

.alert-title {
    font-weight: 600;
    font-size: var(--auth-font-size-sm);
    margin-bottom: var(--auth-space-1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alert-message {
    font-size: var(--auth-font-size-sm);
    line-height: 1.5;
}

.alert-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--auth-space-1);
    color: currentColor;
    opacity: 0.7;
    transition: var(--auth-transition);
    border-radius: var(--auth-radius-sm);
}

.alert-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

/* ============================================================
   DIVIDERS
   ============================================================ */

.auth-divider {
	display: flex;
	align-items: center;
	text-align: center;
    margin: var(--auth-space-8) 0;
    position: relative;
}

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

.auth-divider span {
    padding: 0 var(--auth-space-4);
    color: #7f8c8d !important;
    font-size: var(--auth-font-size-sm);
    font-weight: 500;
    background: #ffffff !important;
}

/* ============================================================
   LINKS
   ============================================================ */

.auth-links {
	text-align: center;
    margin-top: var(--auth-space-6);
}

.auth-link {
	color: var(--auth-primary);
	text-decoration: none;
    font-weight: 500;
    transition: var(--auth-transition);
    display: inline-flex;
    align-items: center;
    gap: var(--auth-space-2);
    padding: var(--auth-space-2) var(--auth-space-3);
    border-radius: var(--auth-radius);
}

.auth-link:hover {
    color: var(--auth-primary-dark);
    background: var(--auth-primary-bg);
    text-decoration: none;
}

.auth-btn-link {
    background: transparent;
    color: var(--auth-primary);
    padding: var(--auth-space-2);
    border: none;
    text-decoration: none;
    font-weight: 500;
    transition: var(--auth-transition);
    border-radius: var(--auth-radius);
}

.auth-btn-link:hover {
    background: var(--auth-primary-bg);
    text-decoration: none;
}

/* ============================================================
   SPECIAL COMPONENTS
   ============================================================ */

.email-display {
    background: var(--auth-light);
    border: 2px solid var(--auth-border);
    border-radius: var(--auth-radius-md);
    padding: var(--auth-space-4);
    margin-bottom: var(--auth-space-6);
    display: flex;
    align-items: center;
    gap: var(--auth-space-3);
	text-align: center;
    justify-content: center;
}

.email-display i {
    color: var(--auth-primary);
    font-size: var(--auth-font-size-lg);
}

.email-text {
    font-weight: 600;
    color: var(--auth-text);
    font-size: var(--auth-font-size-base);
}

.email-display-warning {
    border-color: var(--auth-warning);
    background: var(--auth-warning-bg);
}

.email-display-warning i {
    color: var(--auth-warning);
}

.auth-message {
    background: var(--auth-primary-bg);
    border: 1px solid var(--auth-primary);
    border-radius: var(--auth-radius-md);
    padding: var(--auth-space-4);
    margin-bottom: var(--auth-space-6);
	display: flex;
    align-items: center;
    gap: var(--auth-space-3);
}

.auth-message i {
    color: var(--auth-primary);
    font-size: var(--auth-font-size-lg);
    flex-shrink: 0;
}

.auth-message p {
    margin: 0;
    color: rgb(34, 34, 34);
    font-size: var(--auth-font-size-sm);
    line-height: 1.5;
}

.auth-message-warning {
    background: var(--auth-warning-bg);
    border-color: var(--auth-warning);
}

.auth-message-warning i {
    color: var(--auth-warning);
}

.auth-countdown {
	text-align: center;
    color: var(--auth-text-muted);
    font-size: var(--auth-font-size-sm);
    margin-top: var(--auth-space-4);
    font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */

.auth-footer {
    background: #f8f9fa !important;
    padding: var(--auth-space-6);
    text-align: center;
    border-top: 1px solid #e1e8ed !important;
    color: #2c3e50 !important;
    width: 100%;
    border-radius: 0 0 var(--auth-radius-xl) var(--auth-radius-xl);
}

.logo-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--auth-space-4);
    margin-bottom: var(--auth-space-4);
}

.footer-logo {
    height: 32px;
    opacity: 0.7;
    transition: var(--auth-transition);
}

.footer-logo:hover {
    opacity: 1;
}

.copyright {
    color: var(--auth-text-muted);
    font-size: var(--auth-font-size-xs);
    margin: 0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes authCardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes headerShimmer {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(30deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(30deg);
    }
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
    .auth-container {
        padding: var(--auth-space-2);
    }

    .auth-split-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-left-panel {
        padding: var(--auth-space-6);
        order: 2;
    }

    .auth-right-panel {
        padding: var(--auth-space-6);
        order: 1;
        min-height: 300px;
    }

    .welcome-content {
        padding: var(--auth-space-4);
    }

    .welcome-logo img {
        width: 60px;
        height: 60px;
    }

    .welcome-content h1 {
        font-size: var(--auth-font-size-2xl);
    }

    .welcome-content p {
        font-size: var(--auth-font-size-base);
        margin-bottom: var(--auth-space-4);
    }

    .brand-logos {
        gap: var(--auth-space-3);
        margin-bottom: var(--auth-space-4);
    }

    .brand-logo {
        height: 32px;
    }

    .auth-alerts-popup {
        top: var(--auth-space-4);
        right: var(--auth-space-4);
        left: var(--auth-space-4);
        max-width: none;
    }
}

@media (max-width: 640px) {
    .auth-container {
        padding: var(--auth-space-2);
    }

    .auth-left-panel {
        padding: var(--auth-space-4);
    }

    .auth-btn {
        padding: var(--auth-space-3) var(--auth-space-4);
    }

    .verification-input input {
        font-size: var(--auth-font-size-lg);
        letter-spacing: 0.25rem;
    }
}

@media (max-width: 480px) {
    .welcome-content h1 {
        font-size: var(--auth-font-size-xl);
    }

    .welcome-content p {
        font-size: var(--auth-font-size-sm);
    }

    .brand-logos {
        flex-direction: column;
        gap: var(--auth-space-2);
    }

    .welcome-logo img {
        width: 50px;
        height: 50px;
    }
}

/* ============================================================
   DARK MODE SUPPORT
   ============================================================ */

@media (prefers-color-scheme: dark) {
    :root {
        --auth-white: #1a1a1a;
        --auth-light: #2d2d2d;
        --auth-light-gray: #3a3a3a;
        --auth-text: #e1e1e1;
        --auth-text-muted: #a0a0a0;
        --auth-border: #404040;
        --auth-border-light: #333333;
    }
    
    .auth-background {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    
    .auth-pattern {
        background-image: 
            radial-gradient(circle at 25% 25%, rgba(26, 188, 156, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 75% 75%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
    }
}

/* ============================================================
   SPECIAL COMPONENTS - SETUP & REQUIREMENTS
   ============================================================ */

.setup-confirmation {
    background: var(--auth-warning-bg);
    border: 1px solid var(--auth-warning);
    border-radius: var(--auth-radius-md);
    padding: var(--auth-space-4);
    margin: var(--auth-space-6) 0;
}

.confirmation-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--auth-space-3);
}

.confirmation-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 1rem;
    height: 1rem;
    accent-color: var(--auth-warning);
}

.confirmation-checkbox label {
    font-size: var(--auth-font-size-sm);
    color: var(--auth-warning);
    line-height: 1.5;
    cursor: pointer;
    font-weight: 500;
}

.auth-requirements {
    background: #f0f0f0;
	border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-md);
    padding: var(--auth-space-4);
    margin: var(--auth-space-6) 0;
}

.auth-requirements h4 {
    color: rgb(34, 34, 34);
    font-size: var(--auth-font-size-sm);
    margin: 0 0 var(--auth-space-3) 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-requirements li {
	display: flex;
    align-items: center;
    gap: var(--auth-space-2);
    color: rgb(34, 34, 34);
    font-size: var(--auth-font-size-sm);
    margin-bottom: var(--auth-space-2);
    transition: var(--auth-transition);
}

.auth-requirements li:last-child {
    margin-bottom: 0;
}

.auth-requirements li i {
    font-size: var(--auth-font-size-xs);
    transition: var(--auth-transition);
}

.auth-requirements li i.fa-check-circle {
    color: var(--auth-success);
}

.auth-requirements li i.fa-circle {
    color: var(--auth-text-muted);
}

.text-success {
    color: var(--auth-success) !important;
}

/* ============================================================
   OAUTH INSTRUCTIONS PAGE STYLES
   ============================================================ */

.setup-steps {
    margin-bottom: var(--auth-space-8);
}

.setup-steps h3 {
    color: var(--auth-text);
    font-size: var(--auth-font-size-xl);
    font-weight: 600;
    margin-bottom: var(--auth-space-6);
    text-align: center;
}

.step {
    display: flex;
    gap: var(--auth-space-4);
    margin-bottom: var(--auth-space-6);
    padding-bottom: var(--auth-space-6);
    border-bottom: 1px solid var(--auth-border);
}

.step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-number {
    background: var(--auth-gradient-primary);
    color: var(--auth-white);
    width: 2.5rem;
    height: 2.5rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: var(--auth-font-size-lg);
    box-shadow: var(--auth-shadow);
}

.step-content h4 {
    margin-bottom: var(--auth-space-2);
    color: var(--auth-text);
    font-size: var(--auth-font-size-lg);
    font-weight: 600;
}

.step-content p {
    margin-bottom: var(--auth-space-2);
    line-height: 1.6;
    color: var(--auth-text-muted);
}

.step-content a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
}

.step-content a:hover {
    text-decoration: underline;
}

.redirect-uri-box {
    background: var(--auth-light);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: var(--auth-space-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: var(--auth-space-2) 0;
}

.redirect-uri-box code {
    background: var(--auth-white);
    padding: var(--auth-space-1) var(--auth-space-2);
    border-radius: var(--auth-radius-sm);
    font-family: 'Courier New', monospace;
    flex-grow: 1;
    margin-right: var(--auth-space-4);
    font-size: var(--auth-font-size-sm);
    color: var(--auth-text);
}

.copy-btn {
	background: var(--auth-primary);
    color: var(--auth-white);
    border: none;
    padding: var(--auth-space-1) var(--auth-space-3);
    border-radius: var(--auth-radius-sm);
    font-size: var(--auth-font-size-xs);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--auth-space-1);
    transition: var(--auth-transition);
    font-weight: 500;
}

.copy-btn:hover {
    background: var(--auth-primary-dark);
    transform: translateY(-1px);
}

.copy-btn.copied {
	background: var(--auth-success);
}

.config-example {
    background: var(--auth-light);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: var(--auth-space-4);
    margin: var(--auth-space-2) 0;
}

.config-example pre {
    margin: 0;
    background: var(--auth-white);
    padding: var(--auth-space-3);
    border-radius: var(--auth-radius-sm);
    overflow-x: auto;
    border: 1px solid var(--auth-border);
}

.config-example code {
    font-family: 'Courier New', monospace;
    font-size: var(--auth-font-size-sm);
    color: var(--auth-text);
}

.oauth-scopes {
    background: var(--auth-success-bg);
    border: 1px solid var(--auth-success);
    border-radius: var(--auth-radius-lg);
    padding: var(--auth-space-6);
    margin-bottom: var(--auth-space-8);
}

.oauth-scopes h4 {
    margin-bottom: var(--auth-space-2);
    color: var(--auth-success);
    font-size: var(--auth-font-size-lg);
    font-weight: 600;
}

.oauth-scopes ul {
    margin-bottom: var(--auth-space-2);
    list-style: none;
    padding: 0;
}

.oauth-scopes li {
    margin-bottom: var(--auth-space-1);
    color: var(--auth-success);
    font-size: var(--auth-font-size-sm);
}

.oauth-scopes code {
    background: var(--auth-white);
    padding: var(--auth-space-1) var(--auth-space-2);
    border-radius: var(--auth-radius-sm);
    font-family: 'Courier New', monospace;
    font-size: var(--auth-font-size-xs);
    color: var(--auth-text);
}

.troubleshooting {
    background: var(--auth-warning-bg);
    border: 1px solid var(--auth-warning);
    border-radius: var(--auth-radius-lg);
    padding: var(--auth-space-6);
    margin-bottom: var(--auth-space-8);
}

.troubleshooting h4 {
    margin-bottom: var(--auth-space-4);
    color: var(--auth-warning);
    font-size: var(--auth-font-size-lg);
    font-weight: 600;
}

.issue {
    margin-bottom: var(--auth-space-4);
    padding-bottom: var(--auth-space-4);
    border-bottom: 1px solid rgba(243, 156, 18, 0.3);
}

.issue:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.issue-header {
    display: flex;
    align-items: center;
    gap: var(--auth-space-2);
    margin-bottom: var(--auth-space-2);
}

.issue-header i {
    font-size: var(--auth-font-size-lg);
}

.issue-header strong {
    color: var(--auth-warning);
    font-size: var(--auth-font-size-base);
    font-weight: 600;
}

.issue-description {
    margin: 0 0 var(--auth-space-3) 0;
    color: var(--auth-text-muted);
    font-size: var(--auth-font-size-sm);
    line-height: 1.5;
}

.issue-solution {
    background: var(--auth-white);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: var(--auth-space-4);
}

.issue-solution strong {
    color: var(--auth-text);
    display: flex;
    align-items: center;
    gap: var(--auth-space-2);
    margin-bottom: var(--auth-space-3);
    font-size: var(--auth-font-size-sm);
}

.issue-solution ol,
.issue-solution ul {
    margin: 0;
    padding-left: var(--auth-space-6);
}

.issue-solution li {
    margin-bottom: var(--auth-space-2);
    color: var(--auth-text-muted);
    font-size: var(--auth-font-size-sm);
    line-height: 1.5;
}

.copy-box {
    background: var(--auth-light);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: var(--auth-space-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: var(--auth-space-2) 0;
}

.copy-box code {
    background: var(--auth-white);
    padding: var(--auth-space-1) var(--auth-space-2);
    border-radius: var(--auth-radius-sm);
    font-family: 'Courier New', monospace;
    flex-grow: 1;
    margin-right: var(--auth-space-2);
    font-size: var(--auth-font-size-xs);
    color: var(--auth-text);
}

.code-block {
    background: var(--auth-light);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: var(--auth-space-2);
    margin: var(--auth-space-2) 0;
}

.code-block pre {
    margin: 0;
    background: var(--auth-white);
    padding: var(--auth-space-2);
    border-radius: var(--auth-radius-sm);
    overflow-x: auto;
    border: 1px solid var(--auth-border);
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: var(--auth-font-size-xs);
    color: var(--auth-text);
}

.scope-list {
    display: flex;
    gap: var(--auth-space-2);
    margin: var(--auth-space-2) 0;
    flex-wrap: wrap;
}

.scope-tag {
    background: var(--auth-primary);
    color: var(--auth-white);
    padding: var(--auth-space-1) var(--auth-space-2);
    border-radius: var(--auth-radius-sm);
    font-size: var(--auth-font-size-xs);
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.debug-section {
    background: var(--auth-info-bg);
    border: 1px solid var(--auth-info);
    border-radius: var(--auth-radius-lg);
    padding: var(--auth-space-6);
    margin-bottom: var(--auth-space-6);
}

.debug-section h5 {
    margin-bottom: var(--auth-space-4);
    color: var(--auth-info);
    font-size: var(--auth-font-size-base);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--auth-space-2);
}

.config-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--auth-space-3);
    margin-bottom: var(--auth-space-4);
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--auth-space-2);
    background: var(--auth-white);
    border-radius: var(--auth-radius);
    border: 1px solid var(--auth-border);
}

.status-item > div {
    display: flex;
    align-items: center;
    gap: var(--auth-space-2);
}

.status-item i {
    color: var(--auth-info);
    font-size: var(--auth-font-size-sm);
}

.status-item strong {
    color: var(--auth-text);
    font-size: var(--auth-font-size-sm);
    font-weight: 500;
}

.badge {
    padding: var(--auth-space-1) var(--auth-space-2);
    border-radius: var(--auth-radius-sm);
    font-size: var(--auth-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: var(--auth-success-bg);
    color: var(--auth-success);
    border: 1px solid var(--auth-success);
}

.badge-danger {
    background: var(--auth-danger-bg);
    color: var(--auth-danger);
    border: 1px solid var(--auth-danger);
}

.debug-tools {
    background: var(--auth-white);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: var(--auth-space-4);
    margin-top: var(--auth-space-4);
}

.debug-tools h5 {
    margin-bottom: var(--auth-space-3);
    color: var(--auth-text);
    font-size: var(--auth-font-size-base);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--auth-space-2);
}

.tool-buttons {
    display: flex;
    gap: var(--auth-space-3);
    flex-wrap: wrap;
}

.debug-info {
    background: var(--auth-light);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: var(--auth-space-3);
    margin-top: var(--auth-space-2);
}

.debug-info small {
    font-family: 'Courier New', monospace;
    line-height: 1.4;
    color: var(--auth-text-muted);
    font-size: var(--auth-font-size-xs);
}

.redirect-note {
    background: var(--auth-warning-bg);
    border: 1px solid var(--auth-warning);
    border-radius: var(--auth-radius);
    padding: var(--auth-space-3);
    margin-top: var(--auth-space-2);
    font-size: var(--auth-font-size-sm);
    color: var(--auth-warning);
}

.text-warning {
    color: var(--auth-warning) !important;
}

.text-danger {
    color: var(--auth-danger) !important;
}

.text-info {
    color: var(--auth-info) !important;
}

.text-muted {
    color: var(--auth-text-muted) !important;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.auth-text-center { text-align: center; }
.auth-text-left { text-align: left; }
.auth-text-right { text-align: right; }

.auth-mt-1 { margin-top: var(--auth-space-1); }
.auth-mt-2 { margin-top: var(--auth-space-2); }
.auth-mt-3 { margin-top: var(--auth-space-3); }
.auth-mt-4 { margin-top: var(--auth-space-4); }
.auth-mt-6 { margin-top: var(--auth-space-6); }
.auth-mt-8 { margin-top: var(--auth-space-8); }

.auth-mb-1 { margin-bottom: var(--auth-space-1); }
.auth-mb-2 { margin-bottom: var(--auth-space-2); }
.auth-mb-3 { margin-bottom: var(--auth-space-3); }
.auth-mb-4 { margin-bottom: var(--auth-space-4); }
.auth-mb-6 { margin-bottom: var(--auth-space-6); }
.auth-mb-8 { margin-bottom: var(--auth-space-8); }

.auth-p-1 { padding: var(--auth-space-1); }
.auth-p-2 { padding: var(--auth-space-2); }
.auth-p-3 { padding: var(--auth-space-3); }
.auth-p-4 { padding: var(--auth-space-4); }
.auth-p-6 { padding: var(--auth-space-6); }
.auth-p-8 { padding: var(--auth-space-8); }

.auth-hidden { display: none; }
.auth-visible { display: block; }

.auth-loading {
	position: relative;
	pointer-events: none;
    opacity: 0.7;
}

.auth-loading::after {
    content: '';
	position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
	border: 2px solid transparent;
	border-radius: 50%;
	border-top-color: currentColor;
    animation: spin 1s linear infinite;
}

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