/* PlayCity Authentication - Simplified Glassmorphism */

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

body {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden; /* Only hide horizontal scroll */
    min-height: 100vh; /* Minimum height, allows expansion */
    margin: 0;
}

/* Starfield Background */
.auth-container {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Minimum height, allows expansion */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    padding: 20px 0; /* Add vertical padding for mobile */
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Stars */
.stars {
    width: 100%;
    height: 100%;
    position: relative;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 4s infinite;
}

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

/* Content */
.auth-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

/* Glass Box - Simple and Static */
.auth-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    width: 96px;
    height: auto;
    filter: brightness(1.1);
}

/* Forms */
.auth-form {
    display: none;
}

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

.auth-title {
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 8px;
    color: #ffffff;
}

.auth-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 32px;
}

/* Form Groups */
.form-group {
    margin-bottom: 16px;
}

/* Inputs */
.glass-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    height: 48px; /* 명시적 높이 설정 */
    box-sizing: border-box;
    transition: all 0.2s;
    outline: none;
}

.glass-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Buttons */
.glass-button {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.primary-button {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
}

.primary-button:hover {
    background: rgba(255, 255, 255, 1);
}

.primary-button:active {
    transform: scale(0.98);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.secondary-button:active {
    transform: scale(0.98);
}

.button-text {
    position: relative;
    z-index: 1;
}

.button-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.glass-button.loading .button-text {
    visibility: hidden;
}

.glass-button.loading .button-loader {
    display: block;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Links */
.auth-links {
    text-align: center;
    margin: 16px 0;
}

.glass-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.glass-link:hover {
    color: #ffffff;
}

/* Divider */
.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider span {
    background: #000000;
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

/* Switch */
.auth-switch {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.auth-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Toast Messages */
.message-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: none;
    z-index: 1000;
}

.message-toast.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

.message-toast.success {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.message-toast.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== ENTERPRISE-GRADE LOADING SYSTEM ===== */

/* Page Loading Skeleton */
.skeleton-loading {
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes skeleton-pulse {
    0% {
        background: rgba(255, 255, 255, 0.05);
    }
    100% {
        background: rgba(255, 255, 255, 0.15);
    }
}

/* Logo Loading Animation */
.logo-loading {
    position: relative;
    overflow: hidden;
}

.logo-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: logo-shimmer 2s ease-in-out infinite;
}

@keyframes logo-shimmer {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Enhanced Button Loading States */
.glass-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-button.loading {
    pointer-events: none;
    cursor: not-allowed;
}

.glass-button.loading .button-text {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-button.loading .button-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Loading Spinner */
.button-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-left: 2px solid #000000;
    border-radius: 50%;
    animation: enhanced-spin 1s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes enhanced-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Loading Progress Bar */
.loading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-progress.active {
    opacity: 1;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0074ff, #4d9fff);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.loading-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: progress-shimmer 1s ease-in-out infinite;
}

@keyframes progress-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== MICRO-INTERACTIONS ===== */

/* Enhanced Input Focus Effects */
.glass-input {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-input:focus {
    border-color: #0074ff;
    background: rgba(0, 116, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 116, 255, 0.1);
    transform: translateY(-1px);
}

.glass-input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

/* Input Label Float Effect */
.form-group {
    position: relative;
}

.floating-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.glass-input:focus + .floating-label,
.glass-input:not(:placeholder-shown) + .floating-label {
    top: -8px;
    left: 12px;
    font-size: 12px;
    color: #0074ff;
    background: #000000;
    padding: 0 4px;
}

/* Button Hover Effects */
.glass-button:hover:not(.loading) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.glass-button:active:not(.loading) {
    transform: translateY(-1px);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== VALIDATION FEEDBACK SYSTEM ===== */

/* Input Validation States */
.input-feedback {
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-feedback.success,
.input-feedback.error,
.input-feedback.loading {
    opacity: 1;
    transform: translateY(0);
}

.input-feedback.success {
    color: #10b981;
}

.input-feedback.error {
    color: #ef4444;
}

.input-feedback.loading {
    color: #0074ff;
}

/* Validation Icons */
.input-feedback::before {
    content: '';
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.input-feedback.success::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
}

.input-feedback.error::before {
    content: '✗';
    color: #ef4444;
    font-weight: bold;
}

.input-feedback.loading::before {
    content: '';
    border: 1px solid rgba(0, 116, 255, 0.3);
    border-left: 1px solid #0074ff;
    border-radius: 50%;
    animation: micro-spin 0.8s linear infinite;
}

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

/* Input Border Validation States */
.glass-input.success {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.glass-input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.glass-input.loading {
    border-color: #0074ff;
    background: rgba(0, 116, 255, 0.05);
}

/* ===== PROGRESS INDICATORS ===== */

/* Signup Progress Steps */
.signup-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
}

.signup-progress::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.progress-step {
    position: relative;
    flex: 1;
    text-align: center;
    z-index: 1;
}

.progress-step::before {
    content: attr(data-step);
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 500;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-step.active::before {
    background: #0074ff;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(0, 116, 255, 0.2);
}

.progress-step.completed::before {
    content: '✓';
    background: #10b981;
    color: #ffffff;
}

.progress-step span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.progress-step.active span {
    color: #0074ff;
    font-weight: 500;
}

.progress-step.completed span {
    color: #10b981;
}

/* Animated Progress Line */
.progress-line {
    position: absolute;
    top: 12px;
    left: calc(33.33% + 12px); /* Start after first step circle */
    right: calc(33.33% + 12px); /* End before last step circle */
    height: 2px;
    background: linear-gradient(90deg, #0074ff, #10b981);
    z-index: -1; /* Ensure it's behind the circles */
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

.signup-progress.step-2 .progress-line {
    width: 50%;
}

.signup-progress.step-3 .progress-line {
    width: 100%;
}

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

/* Page Enter Animation */
.auth-box {
    animation: page-enter 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes page-enter {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Form Switch Animation */
.auth-form {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form.active {
    opacity: 1;
    transform: translateX(0);
}

/* Step Transition Animation */
.signup-step {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.signup-step.active {
    opacity: 1;
    transform: translateX(0);
    display: block;
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */

/* Focus Visible for Better Keyboard Navigation */
.glass-button:focus-visible,
.glass-input:focus-visible,
.glass-link:focus-visible {
    outline: 2px solid #0074ff;
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .logo-loading::after,
    .loading-progress-bar::after {
        display: none;
    }
}

/* Enhanced Signup Form Styles */

/* Progress Steps */
.signup-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    gap: 16px;
}

.progress-step {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.progress-step.active {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Signup Steps */
.signup-step {
    display: none;
}

.signup-step.active {
    display: block;
}

/* Password Group */
.password-group {
    position: relative;
}

.password-group .glass-input {
    padding-right: 48px; /* 토글 버튼 공간 확보 */
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 12px; /* 인풋의 padding과 동일하게 설정 */
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.password-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 25%;
    background: #ef4444;
}

.strength-fill.fair {
    width: 50%;
    background: #f59e0b; /* 주황색 */
}

.strength-fill.good {
    width: 75%;
    background: #10b981;
}

.strength-fill.strong {
    width: 100%;
    background: #10b981;
}

/* Input feedback styles */
.input-feedback {
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
    transition: all 0.3s ease;
}

.input-feedback.error {
    color: #ff4444;
}

.input-feedback.success {
    color: #00c851;
}

.input-feedback.checking {
    color: #ffbb33;
}

/* Password strength text */
.password-strength-text {
    font-size: 12px;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.7);
}

/* Password match feedback */
.password-match-text {
    font-size: 12px;
    margin-top: 4px;
    transition: all 0.3s ease;
}

.password-match-text.match {
    color: #00c851;
}

.password-match-text.no-match {
    color: #ff4444;
}

.strength-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    display: block;
}

/* Input Feedback */
.input-feedback {
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}

.input-feedback.success {
    color: #10b981;
}

.input-feedback.error {
    color: #ef4444;
}

.input-feedback.checking {
    color: #f59e0b;
}

/* Terms Section */
.terms-section {
    margin-bottom: 24px;
}

.terms-title {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

.terms-list {
    margin-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 16px;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1;
}

.checkbox {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox:checked + .checkmark {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
}

.checkbox:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #000000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.label-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.required {
    color: #ef4444;
    font-weight: 500;
}

.optional {
    color: rgba(255, 255, 255, 0.5);
}

.terms-view-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.terms-view-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

/* Step Buttons */
.step-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.secondary-button {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.primary-button {
    flex: 2;
}

/* Completion Message */
.completion-message {
    text-align: center;
    padding: 32px 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.completion-message h3 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 8px;
}

.completion-message p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

/* Responsive - Mobile Optimization */
@media (max-width: 768px) {
    body {
        overflow-y: auto; /* Enable vertical scrolling on mobile */
    }
    
    .auth-container {
        min-height: 100vh;
        align-items: flex-start; /* Start from top on mobile */
        padding: 10px 0; /* Reduced padding for smaller screens */
    }
    
    .auth-content {
        padding: 12px;
        width: 100%;
        max-width: 400px;
    }
    
    .auth-box {
        padding: 24px 20px;
        margin: 10px 0; /* Add vertical margin */
        max-height: none; /* Remove height constraints */
        width: 100%;
    }
    
    .auth-title {
        font-size: 22px;
        margin-bottom: 16px;
    }
    
    .auth-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    /* Form groups mobile optimization */
    .form-group {
        margin-bottom: 16px;
    }
    
    .glass-input {
        padding: 14px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
        height: 50px; /* 모바일에서 약간 더 큰 높이 */
    }
    
    .password-group .glass-input {
        padding-right: 48px; /* 모바일에서도 토글 버튼 공간 확보 */
    }
    
    .signup-progress {
        gap: 6px;
        margin-bottom: 20px;
    }
    
    .progress-step {
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 5px 0;
    }
    
    .auth-content {
        padding: 8px;
    }
    
    .auth-box {
        padding: 20px 16px;
        margin: 5px 0;
    }
    
    .auth-title {
        font-size: 20px;
    }
    
    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .step-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .glass-button {
        width: 100%;
        padding: 14px;
    }
    
    /* Terms section mobile optimization */
    .terms-list {
        max-height: 200px; /* Limit height on very small screens */
        overflow-y: auto;
    }
    
    .checkbox-label {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .auth-container {
        align-items: flex-start;
        padding: 10px 0;
    }
    
    .auth-box {
        margin: 0;
    }
}

/* Remove any animations that might cause issues */
.shimmer-effect {
    animation: none;
}

/* Ensure clean rendering */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #000000 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
}