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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
}

.loading-subtitle {
    font-size: 1rem;
    color: #ccc;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #dc2626;
}

.header-icon {
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
}

.header-icon:hover {
    color: #dc2626;
}

/* Main Content */
.main {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

/* Login Section */
.login-section {
    max-width: 480px;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 32px;
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    position: relative;
}

.input-field {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: white;
}

.input-field:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.input-field::placeholder {
    color: #9ca3af;
}

/* Ensure numeric input styling */
input[type="tel"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

input[type="tel"]::-webkit-outer-spin-button,
input[type="tel"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #666;
}

.forgot-password {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    margin-top: 8px;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #dc2626;
    text-decoration: underline;
}

.login-button {
    background: #dc2626;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.login-button:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

/* Help Links */
.help-links {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.help-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    padding: 8px 0;
}

.help-link:hover {
    color: #dc2626;
}

.help-link svg {
    flex-shrink: 0;
}

/* Image Section */
.image-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    animation: float 3s ease-in-out infinite;
}

.star-1 {
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.star-2 {
    top: 35%;
    right: 8%;
    animation-delay: 1s;
}

.phone-highlight {
    position: absolute;
    bottom: 25%;
    left: 15%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Footer */
.footer {
    background: #2a2a2a;
    color: white;
    margin-top: 80px;
}

.footer-top {
    background: #333;
    padding: 40px 0;
    text-align: center;
}

.footer-social {
    max-width: 600px;
    margin: 0 auto;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.footer-subtitle {
    color: #ccc;
    margin-bottom: 32px;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.footer-main {
    padding: 60px 0;
}

.footer-logo {
    text-align: center;
    margin-bottom: 60px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    line-height: 1.4;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    background: #1a1a1a;
    padding: 20px 0;
    border-top: 1px solid #444;
}

.footer-disclaimer {
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content {
        gap: 40px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .image-section {
        height: 500px;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
        padding-top: 12px;
        border-top: 1px solid #e5e7eb;
    }
    
    .nav-link {
        font-size: 13px;
    }
    
    .content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .login-section {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .image-section {
        height: 400px;
        order: -1;
    }
    
    .main {
        padding: 20px 0;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-main {
        padding: 40px 0;
    }
    
    .social-icons {
        gap: 12px;
    }
    
    .social-icon {
        width: 44px;
        height: 44px;
    }
    
    .loading-title {
        font-size: 1.25rem;
    }
    
    .loading-subtitle {
        font-size: 0.9rem;
    }
    
    .spinner {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .title {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .input-field {
        padding: 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .login-button {
        padding: 14px 24px;
    }
    
    .image-section {
        height: 300px;
    }
    
    .nav {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 12px;
    }
    
    .help-links {
        margin-top: 24px;
        gap: 12px;
    }
    
    .help-link {
        font-size: 13px;
        gap: 8px;
    }
    
    .footer-top {
        padding: 32px 0;
    }
    
    .footer-title {
        font-size: 1.25rem;
    }
    
    .footer-subtitle {
        font-size: 14px;
    }
    
    .social-icons {
        gap: 8px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .footer-main {
        padding: 32px 0;
    }
    
    .footer-logo {
        margin-bottom: 40px;
    }
    
    .footer-column-title {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .footer-link {
        font-size: 13px;
    }
    
    .footer-disclaimer {
        font-size: 11px;
        padding: 0 8px;
    }
    
    .loading-title {
        font-size: 1.1rem;
    }
    
    .loading-subtitle {
        font-size: 0.85rem;
        padding: 0 16px;
    }
    
    .spinner {
        width: 40px;
        height: 40px;
        margin-bottom: 20px;
    }
}

/* Focus styles for accessibility */
.input-field:focus,
.login-button:focus,
.nav-link:focus,
.help-link:focus,
.forgot-password:focus,
.footer-link:focus,
.social-icon:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .input-field {
        border-width: 3px;
    }
    
    .login-button {
        border: 2px solid #dc2626;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .spinner {
        animation: none;
    }
}