/* ============================================================
   LOGIN PAGE STYLES — PopOut&Share
   Page-specific styles (uses base.css for variables and reset)
   ============================================================ */

/* Login page uses base.css CSS variables and reset */
/* Only page-specific overrides defined here */

/* Immersive Background with Original App Theme */
.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    overflow: hidden;
    z-index: -1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 168, 204, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(247, 147, 30, 0.2) 0%, transparent 50%);
    animation: gradientShift 10s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

#travel-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

body {
    background: transparent;
}

/* Dark theme adjustments */
[data-theme="dark"] .hero-bg {
    background: linear-gradient(135deg, #4A00E0 0%, #FF6B35 50%, #00A8CC 100%);
}

[data-theme="dark"] .gradient-overlay {
    background: radial-gradient(circle at 20% 80%, rgba(74, 0, 224, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(0, 168, 204, 0.2) 0%, transparent 50%);
}

/* Main Content Container */
.main-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* Login Wrapper with Glassmorphism */
.login-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .login-wrapper {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* App Name Header */
.app-name-header {
    text-align: center;
    margin-bottom: 2rem;
}

.app-name-header .brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.app-name-header .brand-name {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 50%, #00A8CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-name-header .brand-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Main Layout Container */
.login-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
    animation: slideInFromBottom 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Login slide animation */
@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    50% {
        opacity: 0.8;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Legacy Container (for backward compatibility) */
.login-shell {
    width: min(440px, calc(100vw - 2rem));
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin: 1rem;
    animation: fadeInUp 0.6s ease-out;
}

.login-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: slide-in-left 0.8s var(--transition-normal);
    max-width: 500px;
    width: 100%;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px 0 0 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .login-left {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slide-in-right 0.8s var(--transition-normal);
    max-width: 500px;
    width: 100%;
    height: 100%;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 24px 24px 0;
    overflow: hidden;
}

[data-theme="dark"] .login-right {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-logo-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.brand-logo-fill {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.brand-logo-fill.brand-logo-light {
    opacity: 1;
}

.brand-logo-fill.brand-logo-dark {
    opacity: 0;
}

[data-theme="dark"] .brand-logo-fill.brand-logo-light {
    opacity: 0;
}

[data-theme="dark"] .brand-logo-fill.brand-logo-dark {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-container {
        max-width: 900px;
        gap: 3rem;
        grid-template-columns: minmax(350px, 1fr) minmax(280px, 0.7fr);
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        padding: 1.5rem;
        height: auto;
        min-height: 100vh;
    }
    
    .login-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 500px;
        justify-items: center;
    }
    
    .login-left {
        max-width: 100%;
        align-items: center;
    }
    
    .login-right {
        display: none;
    }
    
    .auth-header {
        text-align: center;
        align-items: center;
    }
    
    .auth-tabs {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 1rem;
    }
    
    .login-container {
        gap: 1.5rem;
        padding: 0;
    }
    
    .auth-form-container {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .form-input {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .form-submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Logo & Header */
.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

/* Brand logo uses base.css styles with login-specific sizing */
.login-logo .brand-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem;
    animation: bounce-in 0.6s var(--transition-bounce);
}

.login-logo .brand-logo img {
    height: 64px;
}

@keyframes bounce-in {
    0% { transform: scale(0.3); opacity: 0; }
    60% { transform: scale(1.1); }
    80% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.auth-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Brand Section (Legacy) */
.brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.brand h1 {
    font-size: clamp(1.4rem, 4vw, 1.6rem);
    margin: 0;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--sunset-orange), var(--ocean-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand p {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Form Container */
.login-form {
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: grid;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    animation: form-in 0.6s var(--transition-normal) 0.2s backwards;
}

.login-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sunset-orange), transparent);
    opacity: 0.3;
}

@keyframes form-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Fields */
.field {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.field input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    position: relative;
}

.field input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.field input:hover {
    border-color: var(--sunset-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.08);
}

.field input:focus {
    outline: none;
    border-color: var(--sunset-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
    background: var(--bg-elevated);
}

.field input.error {
    border-color: var(--danger-color);
    background: rgba(239, 68, 68, 0.02);
}

.field input.success {
    border-color: var(--success-color);
}

/* Row Layout */
.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.3rem;
    font-size: 0.85rem;
}

/* Remember Checkbox */
.remember {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    cursor: pointer;
}

.remember input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--sunset-orange);
    cursor: pointer;
}

/* Links */
.row a {
    color: var(--sunset-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.row a:hover {
    text-decoration: underline;
}

/* Error & Success Messages */
.error-message {
    display: none;
    margin: 0.5rem 0 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger-color);
    border-radius: 10px;
    padding: 1rem;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
    animation: message-in 0.3s var(--transition-fast);
}

.error-message.show {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    animation: shake 0.3s ease-in-out;
}

.success-message {
    display: none;
    margin: 0.5rem 0 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success-color);
    border-radius: 10px;
    padding: 1rem;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
    animation: message-in 0.3s var(--transition-fast);
}

.success-message.show {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

@keyframes message-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

[data-theme="dark"] .error-message {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

[data-theme="dark"] .success-message {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

/* Submit Buttons */
.login-btn, .form-submit-btn {
    width: 100%;
    padding: 1rem 1.25rem;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--sunset-orange) 0%, var(--ocean-teal) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
}

.login-btn:hover:not(:disabled),
.form-submit-btn:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.4);
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.3));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-btn:active:not(:disabled),
.form-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.login-btn:disabled,
.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-btn::before,
.form-submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-btn:active::before,
.form-submit-btn:active::before {
    width: 300px;
    height: 300px;
}

/* Create Account Button */
.create-account-btn {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--ocean-teal) 0%, var(--cultural-purple) 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 4px 16px rgba(0, 168, 204, 0.3);
}

.create-account-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 168, 204, 0.4);
}

.create-account-btn:active {
    transform: translateY(0);
}

/* Loading States */
.loading, .btn-loading {
    display: none;
}

.loading.show {
    display: inline;
}

.btn-loading {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-text {
    display: inline;
}

.login-btn.loading .btn-text,
.form-submit-btn.loading .btn-text {
    display: none;
}

.login-btn.loading .btn-loading,
.form-submit-btn.loading .btn-loading {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Login Footer */
.login-footer {
    margin-top: 2rem;
    text-align: center;
}

.footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.footer a {
    color: var(--sunset-orange);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

.guest-link {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    opacity: 0.8;
    transition: all var(--transition-fast);
}

.guest-link:hover {
    opacity: 1;
    color: var(--ocean-teal);
    text-decoration: none;
}

/* Right Panel Info Section */
.login-info {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(0, 168, 204, 0.08));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.login-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--sunset-orange), var(--ocean-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-info p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Feature List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.feature-item:hover {
    transform: translateX(5px);
    border-color: var(--sunset-orange);
}

.feature-item i {
    font-size: 1.25rem;
    color: var(--sunset-orange);
    width: 24px;
}

.feature-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Auth Info Section (New Design) */
.auth-info {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(0, 168, 204, 0.08));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--sunset-orange), var(--ocean-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--sunset-orange), var(--ocean-teal));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-text p {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.info-text p:last-child {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Tab Toggle (New Design) */
.auth-tabs {
    display: flex;
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 0.35rem;
    gap: 0.35rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--transition-fast);
    position: relative;
}

.auth-tab.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-tab:hover:not(.active) {
    color: var(--text-primary);
}

/* Form Group (New Design) */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-label-hint {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Form Input (New Design) */
.form-input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    position: relative;
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-input:hover {
    border-color: var(--sunset-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.08);
    transform: translateY(-1px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
    outline: none;
    border-color: var(--sunset-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15),
                0 0 20px rgba(255, 107, 53, 0.2);
    background: var(--bg-elevated);
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input::placeholder {
    transition: opacity 0.3s ease;
}

.form-input:focus::placeholder {
    opacity: 0.5;
}

.form-input.error {
    border-color: var(--danger-color);
    background: rgba(239, 68, 68, 0.02);
}

.form-input.success {
    border-color: var(--success-color);
}

/* Travel Preview Carousel */
.travel-preview {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

[data-theme="dark"] .travel-preview {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.preview-carousel::-webkit-scrollbar {
    height: 4px;
}

.preview-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.preview-carousel::-webkit-scrollbar-thumb {
    background: var(--sunset-orange);
    border-radius: 2px;
}

.preview-card {
    flex: 0 0 auto;
    width: 140px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.preview-card:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.preview-image {
    height: 80px;
    width: 100%;
    position: relative;
}

.preview-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.preview-content {
    padding: 0.75rem;
}

.preview-content h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.preview-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-btn:hover {
    color: var(--text-primary);
    transform: translateY(-50%) scale(1.1);
}

/* Password Strength Meter */
.password-strength {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.strength-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--text-muted);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.strength-bar.weak::after {
    width: 25%;
    background: var(--danger-color);
}

.strength-bar.fair::after {
    width: 50%;
    background: var(--warning-color);
}

.strength-bar.good::after {
    width: 75%;
    background: #3b82f6;
}

.strength-bar.strong::after {
    width: 100%;
    background: var(--success-color);
}

.strength-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* Checkbox Group */
.form-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    user-select: none;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--sunset-orange);
    flex-shrink: 0;
}

.form-checkbox-label {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.form-checkbox-label a {
    color: var(--sunset-orange);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.form-checkbox-label a:hover {
    text-decoration: underline;
}

/* Form Divider */
.form-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Social Buttons */
.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-btn:hover {
    border-color: var(--sunset-orange);
    background: var(--bg-elevated);
    transform: translateY(-1px);
}

.social-btn:active {
    transform: translateY(0);
}

.social-icon {
    font-size: 1.1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .login-shell {
    background: var(--bg-dark-secondary);
    border-color: var(--border-dark);
}

[data-theme="dark"] .brand h1 {
    background: linear-gradient(135deg, var(--sunset-orange), var(--ocean-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .login-form {
    background: var(--bg-dark-secondary);
    border-color: var(--border-dark);
}

[data-theme="dark"] .feature-item {
    background: var(--bg-dark);
    border-color: var(--border-dark);
}

[data-theme="dark"] .login-info {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(0, 168, 204, 0.15));
}

/* Responsive Design */
@media (max-width: 900px) {
    .login-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .login-right {
        order: -1;
    }

    .auth-info {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .login-container {
        flex-direction: column;
    }
    
    .login-form {
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .login-right {
        margin-top: 2rem;
    }
    
    .login-info {
        padding: 1.5rem;
    }
    
    .feature-item:hover {
        transform: none;
    }
}

@media (max-width: 640px) {
    .auth-form-container {
        padding: 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .auth-info {
        grid-template-columns: 1fr;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }

    .theme-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .login-shell {
        margin: 0;
        border-radius: 1rem;
        padding: 1.5rem;
    }
    
    .brand-logo {
        width: 48px;
        height: 48px;
    }
    
    .brand-logo img {
        height: 48px;
    }
    
    .field input,
    .form-input {
        padding: 0.875rem;
    }
    
    .login-btn,
    .form-submit-btn,
    .create-account-btn {
        padding: 0.875rem 1rem;
    }
}
