/**
 * Login System Zahra Hasani - Professional Modern UI
 * Inspired by top-tier authentication interfaces like Stripe, Figma, Linear
 */

/* CSS Variables for theming */
:root {
    --primary-gradient: linear-gradient(135deg, #b17b49 0%, #d4a574 50%, #e6c08a 100%);
    --primary-color: #b17b49;
    --primary-dark: #8b5d2f;
    --secondary-color: #d4a574;
    --accent-color: #e6c08a;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.lszh-fullscreen-form {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Animated background particles */
body.lszh-fullscreen-form::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="grad1"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,255,255,0);stop-opacity:0" /></radialGradient></defs><circle cx="20" cy="20" r="2" fill="url(%23grad1)"><animate attributeName="cy" values="20;80;20" dur="3s" repeatCount="indefinite"/></circle><circle cx="50" cy="50" r="1" fill="url(%23grad1)"><animate attributeName="cx" values="50;10;50" dur="4s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="1.5" fill="url(%23grad1)"><animate attributeName="cy" values="30;70;30" dur="5s" repeatCount="indefinite"/></circle></svg>') repeat;
    pointer-events: none;
    z-index: 0;
}

.lszh-fullscreen-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.lszh-form-container,
.lszh-auth-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-xl);
    direction: rtl;
    text-align: right;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 600px;
}

.lszh-form-container::before,
.lszh-auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0.8;
}

.lszh-form-container:hover,
.lszh-auth-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.35);
}

/* Illustration Container - Left Side */
.lszh-illustration-container {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    box-shadow: var(--shadow-large);
}

.lszh-illustration-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2px,
        rgba(255, 255, 255, 0.03) 4px
    );
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateX(-50px) translateY(-50px); }
    100% { transform: translateX(50px) translateY(50px); }
}

/* Brand and Welcome Content */
.lszh-brand-container {
    position: relative;
    z-index: 2;
    color: white;
    margin-bottom: 48px;
}

.lszh-illustration-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAwIiBoZWlnaHQ9IjQwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gIDxkZWZzPiAgICA8bGluZWFyR3JhZGllbnQgaWQ9ImdyYWQiIHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiPiAgICAgIDxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiM4QjVGQkYiLz4gICAgICA8c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iIzYzNjZGMSIvPiAgICAgIDxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzhCNUZCRiIvPiAgICA8L2xpbmVhckdyYWRpZW50PiAgPC9kZWZzPiAgPHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNncmFkKSIvPiAgPGNpcmNsZSBjeD0iMTAwIiBjeT0iMTAwIiByPSI2MCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIi8+ICA8Y2lyY2xlIGN4PSI1MDAiIGN5PSIzMDAiIHI9IjgwIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDUpIi8+ICA8Y2lyY2xlIGN4PSIzMDAiIGN5PSI1MCIgcj0iNDAiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIvPjwvc3ZnPg==');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.lszh-illustration-content {
    position: relative;
    z-index: 2;
}

.lszh-brand-logo {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.02em;
    gap: 12px;
}

.lszh-brand-logo::before {
    content: "🔐";
    font-size: 28px;
}

.lszh-welcome-title {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.lszh-welcome-subtitle {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 48px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Modern Mobile Card Styles */
.lszh-mobile-card {
    max-width: 360px;
    margin: 20px auto;
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.lszh-mobile-card .lszh-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.lszh-mobile-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.lszh-mobile-card .lszh-card-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.5;
}

.lszh-auth-tabs {
    display: flex;
    margin-bottom: 32px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 6px;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.lszh-auth-tabs::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(50% - 6px);
    height: calc(100% - 12px);
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lszh-auth-tabs[data-active="0"]::before {
    transform: translateX(0%);
}

.lszh-auth-tabs[data-active="1"]::before {
    transform: translateX(100%);
}

.lszh-tab-btn {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    text-align: center;
}

.lszh-tab-btn:hover:not(.active) {
    color: #374151;
    background: rgba(255, 255, 255, 0.3);
}

.lszh-tab-btn.active {
    color: #1f2937;
    background: transparent;
    font-weight: 700;
}

.lszh-tab-content {
    display: none;
}

.lszh-tab-content.active {
    display: block;
}

/* Notification Styles */
.lszh-notification {
    position: relative;
    margin-top: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
    backdrop-filter: blur(8px);
    z-index: 9999;
    min-height: 50px;
}

.lszh-notification-show {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1;
}

.lszh-notification-warning {
    background: rgba(177, 123, 73, 0.15);
    color: #8b5d2f;
    border-color: rgba(177, 123, 73, 0.3);
}

.lszh-notification-error {
    background: rgba(239, 68, 68, 0.15);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.3);
}

.lszh-notification-success {
    background: rgba(34, 197, 94, 0.15);
    color: #166534;
    border-color: rgba(34, 197, 94, 0.3);
}

.lszh-notification-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.lszh-notification-text {
    flex: 1;
    text-align: right;
    direction: rtl;
}

.lszh-form h3 {
    margin: 0 0 48px 0;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.02em;
    position: relative;
}

.lszh-form h3::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.lszh-form-step {
    display: block;
}

.lszh-form-group {
    margin-bottom: 24px;
    position: relative;
}

.lszh-form-group label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.lszh-form-group input[type="text"],
.lszh-form-group input[type="tel"],
.lszh-form-group input[type="email"] {
    width: 100%;
    padding: 20px 24px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 500;
    background: var(--bg-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    direction: ltr;
    text-align: left;
    color: var(--text-primary);
}

.lszh-form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(177, 123, 73, 0.1), var(--shadow-medium);
    transform: translateY(-2px);
}

.lszh-form-group input:hover:not(:focus) {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-light);
}

.lszh-form-group input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.lszh-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
    pointer-events: none;
}

.lszh-form-group.has-icon input {
    padding-left: 50px;
}

/* Form Divider */
.lszh-form-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.lszh-form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.lszh-form-divider span {
    background: #fff;
    padding: 0 15px;
    color: #6b7280;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.lszh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px 32px;
    margin-bottom: 20px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.lszh-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;
}

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

.lszh-btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-medium);
}

.lszh-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
    filter: brightness(1.05);
}

.lszh-btn-primary:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.lszh-btn-primary:disabled {
    background: var(--border-medium);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: none;
}

.lszh-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    margin-top: 12px;
}

.lszh-btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.lszh-btn-secondary:disabled {
    background: #f9fafb;
    color: #d1d5db;
    cursor: not-allowed;
}

.lszh-btn-link {
    background: transparent;
    color: #6366f1;
    border: none;
    padding: 8px 0;
    font-weight: 500;
    text-decoration: underline;
    width: auto;
}

.lszh-btn-link:hover {
    color: #4f46e5;
    transform: none;
}

.lszh-btn-full-width {
    width: 100%;
}

/* Verification Code Input - Modern Design */
.lszh-verification-code {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 40px 0;
    direction: ltr;
}

.lszh-code-input {
    width: 64px !important;
    height: 64px;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    border: 3px solid var(--border-light) !important;
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--shadow-light);
}

.lszh-code-input:focus {
    border-color: var(--primary-color) !important;
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(177, 123, 73, 0.15), var(--shadow-medium);
    transform: translateY(-4px) scale(1.05);
    outline: none;
}

.lszh-code-input:not(:placeholder-shown) {
    background: var(--bg-primary);
    border-color: var(--success-color) !important;
    color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1), var(--shadow-medium);
}

.lszh-code-input:hover:not(:focus) {
    border-color: var(--border-medium) !important;
    transform: translateY(-2px);
}

.lszh-code-input.success {
    border-color: var(--success-color) !important;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    animation: successPulse 0.6s ease-in-out;
}

.lszh-verification-code.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.lszh-verification-message {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

/* Messages */
.lszh-messages {
    margin-top: 20px;
}

.lszh-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.lszh-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.lszh-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.lszh-message-info {
    background: #cce7ff;
    border: 1px solid #b8daff;
    color: #004085;
}

/* Countdown */
.lszh-countdown {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

/* Loading State - Modern */
.lszh-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lszh-loading::after {
    content: 'درحال ارسال کد تایید...';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-lg);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    padding: 20px;
}

.lszh-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -30px 0 0 -16px;
    border: 3px solid var(--border-light);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: lszh-spin 1s linear infinite;
    z-index: 101;
}

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

/* Responsive Design - Modern Mobile First */
@media (max-width: 1024px) {
    .lszh-fullscreen-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding: 24px;
    }
    
    .lszh-welcome-title {
        font-size: 44px;
    }
    
    .lszh-welcome-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    body.lszh-fullscreen-form {
        background: var(--primary-gradient);
    }
    
    .lszh-fullscreen-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        max-width: none;
    }
    
    .lszh-illustration-container {
        display: none;
    }
    
    .lszh-form-container,
    .lszh-auth-container {
        margin: 0;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 48px 32px;
        background: var(--bg-primary);
        backdrop-filter: none;
        border: none;
        margin-top: 20vh;
        position: relative;
    }
    
    .lszh-form-container::before,
    .lszh-auth-container::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: var(--border-medium);
        border-radius: 2px;
    }
    
    .lszh-form h3 {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .lszh-verification-code {
        gap: 12px;
        margin: 32px 0;
    }
    
    .lszh-code-input {
        width: 56px !important;
        height: 56px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .lszh-form-container,
    .lszh-auth-container {
        padding: 40px 24px;
        margin-top: 15vh;
    }
    
    .lszh-form h3 {
        font-size: 26px;
        margin-bottom: 36px;
    }
    
    .lszh-verification-code {
        gap: 10px;
        margin: 28px 0;
    }
    
    .lszh-code-input {
        width: 52px !important;
        height: 52px;
        font-size: 18px;
        border-width: 2px !important;
    }
    
    .lszh-btn {
        padding: 16px 28px;
        font-size: 15px;
    }
    
    .lszh-form-group input {
        padding: 18px 20px;
        font-size: 16px;
    }
    
    .lszh-auth-tabs {
        margin-bottom: 28px;
    }
    
    .lszh-tab-btn {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .lszh-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Desktop specific styles */
@media (min-width: 769px) {
    .lszh-mobile-card {
        display: none;
    }
}

/* RTL Improvements */
.lszh-form-container * {
    box-sizing: border-box;
}

/* Animation for step transitions */
.lszh-form-step {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.lszh-form-step.lszh-slide-out {
    opacity: 0;
    transform: translateX(30px);
}

.lszh-form-step.lszh-slide-in {
    opacity: 0;
    transform: translateX(-30px);
}

/* Focus styles for accessibility */
.lszh-btn:focus,
.lszh-tab-btn:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* Error states */
.lszh-form-group.lszh-error input {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.lszh-form-group.lszh-error label {
    color: #dc3545;
}

/* Success states */
.lszh-form-group.lszh-success input {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Enhanced verification code input styles */
.lszh-verification-code {
    display: flex;
    justify-content: center;
    margin: 32px 0;
    direction: ltr; /* Force left-to-right for code inputs */
}

/* Unified code input */
.lszh-code-input-unified {
    width: 200px !important;
    height: 60px;
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 8px;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
    cursor: text;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    padding: 0 20px;
}

.lszh-code-input-unified:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(177, 123, 73, 0.1);
    outline: none;
    transform: scale(1.02);
}

.lszh-code-input-unified:not(:placeholder-shown) {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.lszh-code-input-unified:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

/* Paste indicator */
.lszh-code-input-unified.paste-active {
    border-color: var(--primary-color);
    background: rgba(177, 123, 73, 0.1);
    animation: pastePulse 0.3s ease;
}

/* Legacy code inputs (for backward compatibility) */
.lszh-code-input {
    width: 60px !important;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
    cursor: text;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.lszh-code-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(177, 123, 73, 0.1);
    outline: none;
    transform: scale(1.05);
}

.lszh-code-input:not(:placeholder-shown) {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.lszh-code-input:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

/* Paste indicator */
.lszh-code-input.paste-active {
    border-color: var(--primary-color);
    background: rgba(177, 123, 73, 0.1);
    animation: pastePulse 0.3s ease;
}

@keyframes pastePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Mobile optimization for code inputs */
@media (max-width: 480px) {
    .lszh-verification-code {
        margin: 24px 0;
    }
    
    .lszh-code-input-unified {
        width: 160px !important;
        height: 50px;
        font-size: 22px;
        letter-spacing: 6px;
        padding: 0 15px;
    }
    
    .lszh-code-input {
        width: 50px !important;
        height: 50px;
        font-size: 20px;
        border-width: 2px;
    }
}

/* Tablet optimization */
@media (min-width: 481px) and (max-width: 768px) {
    .lszh-verification-code {
        gap: 10px;
    }
    
    .lszh-code-input {
        width: 55px !important;
        height: 55px;
        font-size: 22px;
    }
}