/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

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

/* Header Styles - Mobile First */
.header {
    background-color: #000;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    background-color: #000;
    text-align: center;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 400;
    display: none; /* Hide on mobile to save space */
}

.main-header {
    background-color: #000;
    padding: 12px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo-image {
    height: 32px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo-image:hover {
    opacity: 0.8;
}

.logo-fallback {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    margin: 0;
}

.header-features {
    display: none; /* Hide on mobile */
}

/* Hero Section - Mobile First */
.hero {
    background: linear-gradient(135deg, #C02026 0%, #8B0000 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.1) 1px, transparent 1px);
    background-size: 15px 15px;
    opacity: 0.3;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
    gap: 30px;
}

.hero-text {
    color: #fff;
    order: 2;
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.9;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero-description {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.9;
}

.hero-visual {
    order: 1;
}

.product-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 200px;
}

.product-container {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 8px;
    text-align: center;
    font-weight: 700;
    font-size: 10px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

/* Authentication Section - Mobile First */
.auth-section {
    padding: 40px 0;
    background-color: #F5F5F5;
    min-height: 40vh;
    display: flex;
    align-items: center;
}

.auth-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.auth-title {
    font-size: 24px;
    font-weight: 800;
    color: #000;
    margin-bottom: 12px;
}

.auth-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.auth-form {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.input-group input:focus {
    outline: none;
    border-color: #C02026;
}

.auth-button {
    background-color: #C02026;
    color: #fff;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.auth-button:hover {
    background-color: #8B0000;
}

.auth-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.auth-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.info-icon {
    font-size: 16px;
}

/* Footer - Mobile First */
.footer {
    background-color: #000;
    color: #fff;
    padding: 30px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-logo-image {
    height: 24px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Makes the logo white */
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.footer-icon {
    font-size: 16px;
}

.footer-copyright p {
    color: #ccc;
    font-size: 12px;
}

/* Modal Styles - Mobile First */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background-color: #C02026;
    color: #fff;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.close {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    background: none;
    border: none;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px 20px;
    text-align: center;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.modal-body p {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.modal-details {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.modal-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.modal-button {
    background-color: #C02026;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s ease;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.modal-button:hover {
    background-color: #8B0000;
}

/* Success Modal Styles */
.modal.success .modal-header {
    background-color: #4CAF50;
}

.modal.success .modal-icon {
    color: #4CAF50;
}

.modal.success .modal-button {
    background-color: #4CAF50;
}

.modal.success .modal-button:hover {
    background-color: #45a049;
}

/* Error Modal Styles */
.modal.error .modal-header {
    background-color: #f44336;
}

.modal.error .modal-icon {
    color: #f44336;
}

.modal.error .modal-button {
    background-color: #f44336;
}

.modal.error .modal-button:hover {
    background-color: #da190b;
}

/* Warning Modal Styles */
.modal.warning .modal-header {
    background-color: #ff9800;
}

.modal.warning .modal-icon {
    color: #ff9800;
}

.modal.warning .modal-button {
    background-color: #ff9800;
}

.modal.warning .modal-button:hover {
    background-color: #e68900;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        padding: 0 30px;
    }
    
    .top-bar {
        display: block;
        font-size: 14px;
        padding: 8px 0;
    }
    
    .main-header {
        padding: 15px 0;
    }
    
    .logo-image {
        height: 40px;
        max-width: 200px;
    }
    
    .logo-fallback {
        font-size: 32px;
    }
    
    .header-features {
        display: flex;
        gap: 20px;
    }
    
    .feature {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
    }
    
    .hero {
        padding: 60px 0;
        min-height: 70vh;
    }
    
    .hero-content {
        flex-direction: row;
        text-align: left;
        gap: 40px;
    }
    
    .hero-text {
        flex: 1;
        order: 1;
    }
    
    .hero-visual {
        flex: 1;
        order: 2;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .product-display {
        max-width: 250px;
        gap: 15px;
    }
    
    .product-container {
        padding: 15px 10px;
        font-size: 12px;
    }
    
    .auth-section {
        padding: 60px 0;
    }
    
    .auth-card {
        padding: 50px 40px;
        max-width: 600px;
    }
    
    .auth-title {
        font-size: 32px;
    }
    
    .auth-description {
        font-size: 18px;
    }
    
    .input-group {
        flex-direction: row;
        gap: 15px;
    }
    
    .input-group input {
        flex: 1;
    }
    
    .auth-button {
        width: auto;
        padding: 16px 32px;
    }
    
    .auth-info {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
    
    .footer {
        padding: 40px 0;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .footer-logo-image {
        height: 28px;
        max-width: 150px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 80%;
        max-width: 500px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 30px;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .modal-icon {
        font-size: 64px;
    }
    
    .modal-body p {
        font-size: 18px;
    }
    
    .modal-button {
        width: auto;
        padding: 12px 30px;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hero {
        padding: 80px 0;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 64px;
    }
    
    .hero-description {
        font-size: 20px;
    }
    
    .product-display {
        max-width: 300px;
        gap: 20px;
    }
    
    .product-container {
        padding: 20px;
        font-size: 14px;
    }
    
    .auth-section {
        padding: 80px 0;
    }
    
    .auth-card {
        padding: 60px;
    }
    
    .header-features {
        gap: 30px;
    }
    
    .feature {
        font-size: 14px;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .header-content {
        padding: 0 40px;
    }
    
    .hero-content {
        padding: 0 40px;
    }
    
    .footer-content {
        padding: 0 40px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .auth-button,
    .modal-button,
    .close {
        min-height: 44px;
        min-width: 44px;
    }
    
    .input-group input {
        min-height: 44px;
    }
    
    .product-container {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 20px 0;
        min-height: 50vh;
    }
    
    .hero-content {
        flex-direction: row;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .auth-section {
        padding: 20px 0;
    }
    
    .auth-card {
        padding: 20px;
    }
    
    .modal-content {
        margin: 5% auto;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-container {
        border-width: 1px;
    }
    
    .input-group input {
        border-width: 1px;
    }
}