/* 
   PremiumOtps Global Auth Design System 
   Version: 6.0.0
   Description: Split-Screen Modern Enterprise Aesthetic.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: #042f2e; /* Deep Teal from Sidebar */
    --primary-light: #0d9488;
    --primary-soft: rgba(4, 47, 46, 0.05);
    
    --secondary: #1e293b;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --border-light: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    
    --error: #ef4444;
    --error-soft: rgba(239, 68, 68, 0.1);
    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.1);
    
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Split Screen Layout */
.auth-page-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Form Side */
.auth-side-form {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--white);
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='0' y1='20' x2='100' y2='50' stroke='rgba(20, 184, 166, 0.08)' stroke-width='0.5'/%3E%3Cline x1='20' y1='0' x2='80' y2='100' stroke='rgba(20, 184, 166, 0.08)' stroke-width='0.5'/%3E%3Cline x1='100' y1='10' x2='0' y2='90' stroke='rgba(20, 184, 166, 0.08)' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    position: relative;
    overflow-y: auto;
}

.auth-form-container {
    width: 100%;
    max-width: 440px;
    animation: fadeIn 0.6s ease-out;
}

/* Right Visual Side */
.auth-side-visual {
    flex: 0.8;
    background: #042f2e;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L60 30 M0 30 L30 60 M60 30 L30 60 M0 30 L30 0' stroke='%23ffffff' stroke-width='0.5' fill='none' opacity='0.03'/%3E%3C/svg%3E");
    display: flex;
    flex-direction: column;
    padding: 60px;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

/* Curved Glass Layer (Dominant Architectural Detail) */
.auth-side-visual::after {
    content: '';
    position: absolute;
    top: -300px;
    right: -300px;
    width: 750px;
    height: 750px;
    background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.15) 0%, rgba(20, 184, 166, 0.2) 60%, transparent 85%);
    border: 1px solid rgba(255, 255, 255, 0.25); /* Bold, high-visibility boundary */
    border-radius: 50%;
    z-index: 1;
    box-shadow: inset 0 0 120px rgba(255, 255, 255, 0.08); /* Strong inner glow */
}

/* Base Diamond Logic preserved but pseudo-elements kept free */
.auth-side-visual::before {
    display: none; /* Removed inner layer as requested */
}

@media (max-width: 992px) {
    .auth-side-visual { display: none; }
    .auth-side-form { width: 100%; }
}

/* Typography Refinement */
.auth-brand-logo {
    width: 44px;
    margin-bottom: 24px;
}

.auth-form-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.auth-form-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.auth-form-subtitle a {
    color: var(--primary-light);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Input Styles (Mockup Style) */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    background: var(--bg-light);
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-light);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 16px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

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

/* Form Buttons (Primary CTAs) */
.auth-button {
    width: 100%;
    padding: 14px;
    background: var(--primary-light);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

.auth-button:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -10px var(--primary);
    overflow: hidden;
}

.auth-button:hover::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 55%
    );
    animation: shimmer 1.5s infinite;
}

.auth-button.pulse-glow {
    animation: pulse-soft 3s infinite;
}

.auth-button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

/* Social Buttons */
.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 40px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 12px;
}

.social-button:hover {
    background: var(--bg-light);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

.social-button img {
    width: 20px;
    height: 20px;
    z-index: 2;
}

.social-button span {
    z-index: 2;
}

/* Premium Shimmer Effect */
.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.8) 50%,
        transparent 55%
    );
    z-index: 1;
    animation: shimmer 4s infinite;
    pointer-events: none;
}

/* visual content */
.visual-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 60px;
}

.support-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.support-link:hover { opacity: 1; }

.visual-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    width: 100%;
}

/* Slider Layout */
.visual-slider-container {
    position: relative;
    width: 100%;
    height: 480px; /* Fixed height for slide Stability */
}

.visual-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.visual-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.promo-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    text-align: left;
    position: relative;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
    overflow: visible; /* Restore visibility for absolute-positioned children */
}

/* Dedicated Layer for Bounded Shimmer Effects */
.promo-glance-layer {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.promo-glance-layer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        transparent 0%,
        transparent 40%,
        rgba(20, 184, 166, 0.08) 50%,
        transparent 60%,
        transparent 100%
    );
    animation: glance 8s infinite;
}

/* Rest of the visual-footer layout inside slides */
.visual-footer {
    text-align: left;
    max-width: 440px;
}

.indicator {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--white);
    width: 24px;
    border-radius: 4px;
}

/* Components */
.divider {
    display: flex;
    align-items: center;
    margin: 32px 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.divider span { 
    padding: 0 16px; 
    position: relative;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-light);
    position: relative;
    overflow: hidden;
}

.divider::before::after, .divider::after::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(13, 148, 136, 0.4),
        transparent
    );
    animation: divider-glint 3s infinite;
}

/* Checkbox (Mockup Style) */
.remember-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.remember-checkbox input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.remember-checkbox input:checked {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.remember-checkbox input:checked::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 10px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%); }
    20%, 100% { transform: translateX(100%) translateY(100%); }
}

@keyframes pulse-soft {
    0% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.2); }
    50% { box-shadow: 0 0 0 10px rgba(13, 148, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes trust-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes glance {
    0% { transform: translateX(-150%) translateY(-150%); }
    20%, 100% { transform: translateX(150%) translateY(150%); }
}

@keyframes divider-glint {
    0% { transform: translateX(-100%); }
    30%, 100% { transform: translateX(100%); }
}

/* Staggered Entrance Utilities */
.stagger-item {
    opacity: 0;
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

.trust-pulse {
    animation: trust-pulse 4s ease-in-out infinite;
}

/* reCAPTCHA professional green skeleton loader */
.recaptcha-holder {
    margin: 24px 0;
    display: flex;
    justify-content: flex-start;
    position: relative;
    min-height: 78px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.recaptcha-holder::before {
    content: "Loading verification...";
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: opacity 0.3s;
}

.recaptcha-holder::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    margin-top: -12px;
    width: 24px;
    height: 24px;
    border: 3px solid var(--primary-soft);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transition: opacity 0.3s;
}

.recaptcha-holder.loaded {
    background: transparent;
    border-color: transparent;
}

.recaptcha-holder.loaded::before,
.recaptcha-holder.loaded::after {
    opacity: 0;
    pointer-events: none;
}

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

/* Server Message Styling */
.error-message-box {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: var(--error);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
}
