/**
 * Customer Login Page CSS
 * Standalone styles for customer login page
 */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Login Page Container */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
}

/* Header Section */
.login-header-section {
    padding: 48px 16px;
    padding-top: max(48px, env(safe-area-inset-top));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    color: white;
    text-align: center;
}

.login-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    margin: 0 auto 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 16px;
    color: white;
    opacity: 0.9;
    font-weight: 400;
}

/* Content Section */
.login-content-section {
    flex: 1;
    background: #f8f9fd;
    border-radius: 24px 24px 0 0;
    padding: 24px 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

/* Alert Cards */
.alert-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: start;
    gap: 12px;
}

.alert-card.error {
    border-left: 4px solid #ef4444;
}

.alert-card.success {
    border-left: 4px solid #10b981;
}

.alert-card.info {
    border-left: 4px solid #667eea;
}

.alert-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.alert-icon.error {
    background: linear-gradient(135deg, #ef444420 0%, #ff6a0020 100%);
    color: #ef4444;
}

.alert-icon.success {
    background: linear-gradient(135deg, #10b98120 0%, #38ef7d20 100%);
    color: #10b981;
}

.alert-icon.info {
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    color: #667eea;
}

.alert-text {
    flex: 1;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

/* Form Card */
.login-form-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
    display: block;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a2e;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: #f8f9fd;
}

.form-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.form-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
    display: block;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.1);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    width: 100%;
    padding: 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    margin-top: 12px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.btn-secondary:active {
    transform: scale(0.98);
    background: #f8f9fd;
}

/* Footer Links */
.login-footer-links {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.footer-title {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.footer-link {
    flex: 1;
    padding: 12px;
    background: #f8f9fd;
    border-radius: 12px;
    text-decoration: none;
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.footer-link:active {
    transform: scale(0.95);
    background: #e5e7eb;
}

/* Responsive Adjustments */
@media (max-width: 360px) {
    .login-title {
        font-size: 24px;
    }
    
    .login-logo {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    .login-header-section {
        padding: 32px 16px;
    }
}

@media (min-width: 768px) {
    .login-content-section {
        max-width: 480px;
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .login-header-section {
        padding: 24px 16px;
    }
    
    .login-logo {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .login-title {
        font-size: 22px;
    }
    
    .login-subtitle {
        font-size: 14px;
    }
}
