* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 25%, #4a90e2 50%, #5ba3f5 75%, #3b82d6 100%);
    height: 100vh;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 25%, #4a90e2 50%, #5ba3f5 75%, #3b82d6 100%);
    position: relative;
    margin: 0;
    padding-bottom: 100px;
    box-sizing: border-box;
    touch-action: manipulation;
}

.container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, transparent 0%, rgba(30, 60, 114, 0.3) 50%, rgba(30, 60, 114, 0.6) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 20px 20px;
    color: white;
}

.back-button {
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-selector {
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.language-selector:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Page Title */
.page-title {
    text-align: center;
    color: white;
    margin: 40px 0 60px;
}

.page-title h1 {
    font-size: 24px;
    font-weight: 400;
}

/* Login Tabs */
.login-tabs {
    display: flex;
    margin: 0 40px 50px;
    position: relative;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.tab.active {
    color: white;
    border-bottom-color: white;
}

.tab:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Login Form */
.login-form {
    padding: 0 40px;
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 16px;
}

.input-group input {
    width: 100%;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 16px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(20px);
    touch-action: manipulation;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

.input-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.customer-option {
    text-align: left;
    margin: 25px 0;
    color: white;
    font-size: 16px;
    text-decoration: underline;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-weight: 400;
}

.customer-option:hover {
    opacity: 1;
}

.login-button {
    width: 100%;
    padding: 20px;
    background: white;
    color: #4A90E2;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.login-button:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.login-button:active {
    transform: translateY(0);
}

/* Digital Password Help */
.digital-password-help {
    text-align: right;
    padding: 0 40px;
    margin-bottom: 80px;
    color: white;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-weight: 400;
}

.digital-password-help:hover {
    opacity: 1;
}

/* Bottom Navigation */
.bottom-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 15px 5px 25px;
    background: linear-gradient(180deg, rgba(59, 130, 214, 0.8) 0%, rgba(30, 60, 114, 0.95) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 4px;
    border-radius: 16px;
    min-width: 65px;
    position: relative;
}

.nav-item.active {
    color: #FFB366;
    background: rgba(255, 179, 102, 0.15);
    border-radius: 20px;
    padding: 12px 8px;
    transform: translateY(-15px);
    box-shadow: 0 4px 20px rgba(255, 179, 102, 0.4);
    margin-bottom: 15px;
}

.nav-item:hover:not(.active) {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
}

.nav-item.active i {
    background: linear-gradient(135deg, #FFB366, #FF8533);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(255, 179, 102, 0.5);
}

.nav-item span {
    font-size: 11px;
    text-align: center;
    line-height: 1.2;
    font-weight: 600;
    max-width: 60px;
    color: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-form {
        padding: 0 30px;
    }
    
    .login-tabs {
        margin: 0 30px 50px;
    }
    
    .digital-password-help {
        padding: 0 30px;
    }
    
    .nav-item span {
        font-size: 10px;
    }
    
    .nav-item {
        min-width: 55px;
        padding: 6px 3px;
    }
    
    .nav-item.active {
        padding: 10px 6px;
    }
}

@media (max-width: 480px) {
    .login-form {
        padding: 0 20px;
    }
    
    .login-tabs {
        margin: 0 20px 50px;
    }
    
    .digital-password-help {
        padding: 0 20px;
    }
    
    .page-title h1 {
        font-size: 22px;
    }
    
    .nav-item {
        min-width: 50px;
        padding: 5px 2px;
    }
    
    .nav-item span {
        font-size: 8px;
    }
}

/* Animation for form submission */
.login-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.login-button.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #4A90E2;
    border-top: 2px solid transparent;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus states for accessibility */
.tab:focus,
.login-button:focus,
.input-group input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.4);
    outline-offset: 2px;
}

/* Smooth transitions */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
} 