:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #3f37c9;
    --success: #4cc9f0;
    --light: #f8f9fa;
    --dark: #212529;
    --danger: #ff0015;
    --warning: #fca311;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
    --bg-color: #0f1419;
    --card-bg: #1e293b;
    --text-primary: #f7fafc;
    --text-secondary: #cbd5e0;
    --border-color: #4a5568;
    --gray-light: #2d3748;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #D6E6F3;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    min-height: 700px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.welcome-section {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.9), rgba(58, 86, 212, 0.9));
    color: white;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.welcome-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0 0 0);
    z-index: 1;
}

.welcome-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.welcome-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.welcome-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.welcome-image:hover img {
    transform: scale(1.05);
}

.welcome-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-content p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 40px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.welcome-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 300px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 1.5rem;
}

.auth-section {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.21);
    backdrop-filter: blur(6.1px);
    -webkit-backdrop-filter: blur(6.1px);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.21);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.1px);
    -webkit-backdrop-filter: blur(6.1px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
}

.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 32px;
    backdrop-filter: blur(6.1px);
    -webkit-backdrop-filter: blur(6.1px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2d3748;
    backdrop-filter: blur(6.1px);
    -webkit-backdrop-filter: blur(6.1px);
    font-size: 0.95rem;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.25);
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}

.form-header p {
    color: #4a5568;
    font-size: 0.95rem;
    opacity: 0.9;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.auth-form {
    display: flex;
    gap: 10px;
    flex-direction: column;
    align-content: space-around;
    justify-content: space-between;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

input {
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6.1px);
    -webkit-backdrop-filter: blur(6.1px);
    color: #2d3748;
    font-weight: 500;
    width: 100%;
}

input::placeholder {
    color: #718096;
    font-weight: 400;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.password-input-container {
    position: relative;
    width: 100%;
}

.password-input-container input {
    width: 100%;
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    color: #4a5568;
    backdrop-filter: blur(6.1px);
    -webkit-backdrop-filter: blur(6.1px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #2d3748;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -8px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4a5568;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
    font-weight: 500;
    flex-shrink: 0;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6.1px);
    -webkit-backdrop-filter: blur(6.1px);
    flex-shrink: 0;
}

.checkbox-container input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.forgot-link:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.btn {
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 52px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

.btn-google {
    background: rgba(255, 255, 255, 0.8);
    color: #2d3748;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6.1px);
    -webkit-backdrop-filter: blur(6.1px);
    font-weight: 600;
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

.auth-divider span {
    background: rgba(255, 255, 255, 0.21);
    padding: 0 16px;
    color: #4a5568;
    font-size: 0.9rem;
    backdrop-filter: blur(6.1px);
    -webkit-backdrop-filter: blur(6.1px);
    border-radius: 10px;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.auth-switch {
    text-align: center;
    color: #4a5568;
    font-size: 0.95rem;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
    font-weight: 500;
    line-height: 1.4;
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-switch a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.error-message, .success-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 16px;
    backdrop-filter: blur(6.1px);
    -webkit-backdrop-filter: blur(6.1px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
    line-height: 1.4;
}

.error-message {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.success-message {
    background: rgba(8, 145, 178, 0.15);
    color: #0891b2;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.password-hint {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 4px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.hidden {
    display: none !important;
}

/* ==================== */
/* MOBILE RESPONSIVENESS */
/* ==================== */

/* Tablets and Mobile Devices */
@media (max-width: 768px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
        backdrop-filter: blur(6.1px);
        margin: 10px;
        border-radius: 16px;
        max-height: 90vh;
        overflow: hidden;
        width: 95%;
        max-width: 450px;
    }
    
    .welcome-section {
        display: none;
    }
    
    .auth-section {
        padding: 30px 25px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        min-height: auto;
        max-height: none;
        overflow-y: visible;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .auth-card {
        padding: 25px;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
    
    .form-header {
        margin-bottom: 25px;
    }
    
    .form-header h2 {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }
    
    .form-header p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    .auth-form {
        gap: 16px;
    }
    
    .auth-tabs {
        margin-bottom: 25px;
    }
    
    .btn {
        min-height: 48px;
        font-size: 0.95rem;
        padding: 12px 16px;
    }
    
    body {
        background-attachment: scroll;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }
    
    .auth-container {
        padding: 15px;
        align-items: center;
        justify-content: center;
        width: 100%;
        display: flex;
    }
}

/* Large Mobile Devices */
@media (max-width: 480px) {
    .auth-container {
        padding: 10px;
        min-height: 100vh;
        align-items: center;
        justify-content: center;
    }
    
    .auth-wrapper {
        margin: 0;
        border-radius: 16px;
        min-height: auto;
        max-height: 85vh;
        width: 100%;
        max-width: 400px;
    }
    
    .auth-section {
        padding: 25px 20px;
        min-height: auto;
        justify-content: center;
        padding-top: 25px;
        max-height: none;
        overflow-y: visible;
    }
    
    .auth-card {
        padding: 20px;
        border-radius: 14px;
        width: 100%;
    }
    
    .auth-tabs {
        margin-bottom: 20px;
        padding: 3px;
    }
    
    .tab-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .form-header {
        margin-bottom: 20px;
    }
    
    .form-header h2 {
        font-size: 1.3rem;
        margin-bottom: 4px;
        line-height: 1.2;
    }
    
    .form-header p {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 0;
    }
    
    .auth-form {
        gap: 5px;
    }
    
    .form-group {
        gap: 6px;
    }
    
    label {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }
    
    input {
        padding: 12px 14px;
        font-size: 0.9rem;
        min-height: 46px;
    }
    
    .btn {
        padding: 12px 16px;
        min-height: 46px;
        font-size: 0.9rem;
        margin-top: 4px;
    }
    
    .form-options {
        gap: 10px;
        margin: 2px 0;
    }
    
    .checkbox-container {
        font-size: 0.85rem;
    }
    
    .forgot-link {
        font-size: 0.85rem;
    }
    
    .auth-divider {
        margin: 16px 0;
    }
    
    .auth-divider span {
        font-size: 0.85rem;
        padding: 0 14px;
    }
    
    .auth-switch {
        font-size: 0.9rem;
        margin-top: 10px;
    }
    
    .password-hint {
        font-size: 0.8rem;
        margin-top: 2px;
    }
    
    .error-message,
    .success-message {
        padding: 10px 12px;
        font-size: 0.85rem;
        margin-top: 14px;
    }
    
    .toggle-password {
        width: 32px;
        height: 32px;
        padding: 4px;
    }
}

/* Small Mobile Devices */
@media (max-width: 375px) {
    .auth-container {
        padding: 8px;
    }
    
    .auth-wrapper {
        max-height: 82vh;
        border-radius: 14px;
    }
    
    .auth-section {
        padding: 20px 16px;
        padding-top: 20px;
        max-height: none;
    }
    
    .auth-card {
        padding: 18px;
        border-radius: 12px;
    }
    
    .auth-tabs {
        margin-bottom: 18px;
    }
    
    .tab-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .form-header {
        margin-bottom: 18px;
    }
    
    .form-header h2 {
        font-size: 1.2rem;
    }
    
    .form-header p {
        font-size: 0.8rem;
    }
    
    .auth-form {
        gap: 12px;
    }
    
    input {
        padding: 10px 12px;
        font-size: 0.85rem;
        min-height: 44px;
    }
    
    .btn {
        padding: 11px 14px;
        min-height: 44px;
        font-size: 0.85rem;
    }
    
    .form-options {
        gap: 8px;
    }
    
    .auth-divider {
        margin: 14px 0;
    }
    
    .auth-switch {
        font-size: 0.85rem;
        margin-top: 8px;
    }
}

/* Very Small Mobile Devices */
@media (max-width: 320px) {
    .auth-section {
        padding: 16px 14px;
        padding-top: 18px;
        max-height: none;
    }
    
    .auth-card {
        padding: 16px 14px;
    }
    
    .auth-tabs {
        margin-bottom: 16px;
    }
    
    .tab-btn {
        padding: 7px 8px;
        font-size: 0.75rem;
    }
    
    .form-header {
        margin-bottom: 16px;
    }
    
    .form-header h2 {
        font-size: 1.15rem;
    }
    
    .form-header p {
        font-size: 0.75rem;
    }
    
    .auth-form {
        gap: 10px;
    }
    
    input {
        padding: 9px 10px;
        font-size: 0.8rem;
        min-height: 42px;
    }
    
    .btn {
        padding: 10px 12px;
        min-height: 42px;
        font-size: 0.8rem;
    }
    
    .auth-switch {
        font-size: 0.8rem;
    }
}

/* Landscape Mode for Mobile */
@media (max-height: 700px) and (orientation: landscape) {
    .auth-container {
        align-items: center;
        justify-content: center;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .auth-wrapper {
        min-height: auto;
        max-height: 95vh;
        width: 95%;
        max-width: 500px;
    }
    
    .auth-section {
        min-height: auto;
        padding: 20px;
        max-height: 95vh;
        overflow-y: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .auth-card {
        padding: 20px;
        margin: 0 auto;
    }
    
    .auth-tabs {
        margin-bottom: 15px;
    }
    
    .form-header {
        margin-bottom: 15px;
    }
    
    .form-header h2 {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }
    
    .form-header p {
        font-size: 0.8rem;
        margin-bottom: 0;
    }
    
    .auth-form {
        gap: 10px;
    }
    
    .form-group {
        gap: 4px;
    }
    
    input {
        padding: 10px 12px;
        min-height: 42px;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 10px 14px;
        min-height: 42px;
        font-size: 0.85rem;
        margin-top: 2px;
    }
    
    .form-options {
        margin: 0;
    }
    
    .auth-divider {
        margin: 12px 0;
    }
    
    .auth-switch {
        margin-top: 6px;
        font-size: 0.85rem;
    }
}

/* Extra Short Screens */
@media (max-height: 600px) {
    .auth-wrapper {
        max-height: 92vh;
    }
    
    .auth-section {
        max-height: 92vh;
        padding: 16px;
    }
    
    .auth-card {
        padding: 16px;
    }
    
    .auth-tabs {
        margin-bottom: 12px;
    }
    
    .form-header {
        margin-bottom: 12px;
    }
    
    .auth-form {
        gap: 8px;
    }
    
    input {
        padding: 8px 10px;
        min-height: 40px;
    }
    
    .btn {
        padding: 8px 12px;
        min-height: 40px;
    }
    
    .auth-divider {
        margin: 10px 0;
    }
}

/* Dark Theme */
[data-theme="dark"] .auth-wrapper {
    background: rgba(30, 41, 59, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .auth-section {
    background: rgba(255, 255, 255, 0.08);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .auth-card {
    background: rgba(255, 255, 255, 0.08);
    color: #f7fafc;
}

[data-theme="dark"] .form-header h2 {
    color: #f7fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .form-header p {
    color: #cbd5e0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] label {
    color: #f7fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #f7fafc;
}

[data-theme="dark"] input::placeholder {
    color: #a0aec0;
}

[data-theme="dark"] .btn-google {
    background: rgba(255, 255, 255, 0.1);
    color: #f7fafc;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .btn-google:hover {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .auth-tabs {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .tab-btn {
    color: #cbd5e0;
}

[data-theme="dark"] .tab-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: #f7fafc;
}

[data-theme="dark"] .auth-divider span {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .checkbox-container {
    color: #cbd5e0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .checkmark {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .auth-switch {
    color: #cbd5e0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .password-hint {
    color: #a0aec0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .toggle-password {
    background: rgba(255, 255, 255, 0.15);
    color: #cbd5e0;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .toggle-password:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #f7fafc;
}

/* Loading states */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    }
    
    .btn-google:hover {
        transform: none;
        box-shadow: none;
    }
    
    .feature-item:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .tab-btn:hover:not(.active) {
        background: transparent;
    }
    
    input:focus {
        transform: none;
    }
}