/* Delivery Page Authentication Styles */

#delivery-auth-gate {
    max-width: 500px !important;
    width: 100% !important;
    margin: 40px auto !important;
    padding: 50px 40px !important;
    background: linear-gradient(135deg, #dba660 0%, #c99657 100%) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 40px rgba(219, 166, 96, 0.25) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    text-align: center !important;
    position: relative !important;
    color: white !important;
}

.auth-step {
    text-align: center !important;
    padding: 20px 0 !important;
}

.auth-step h2 {
    color: white !important;
    margin-bottom: 20px !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.auth-step p {
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 30px !important;
    line-height: 1.6 !important;
    font-size: 16px !important;
}

/* Form Styling */
.auth-step form {
    margin: 25px 0;
}

.auth-step input[type="email"],
.auth-step input[type="tel"],
.auth-step input[type="text"] {
    width: 100% !important;
    max-width: 320px !important;
    padding: 18px 24px !important;
    font-size: 16px !important;
    text-align: center !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    margin: 0 auto 25px auto !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2c3e50 !important;
    display: block !important;
    backdrop-filter: blur(10px) !important;
}

.auth-step input:focus {
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2) !important;
    background: #fff !important;
}

.auth-step button {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    padding: 16px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-width: 180px !important;
    margin: 10px auto !important;
    display: block !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.auth-step button:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    background: rgba(255, 255, 255, 0.3) !important;
}

.auth-step button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-step button.loading {
    background: #ccc;
}

/* Resend OTP Button */
#resend-otp {
    background: #2196F3;
    font-size: 14px;
    padding: 10px 20px;
    margin-top: 15px;
}

#resend-otp:hover {
    background: #1976D2;
}

/* Status Messages */
.message-loading {
    color: #666;
    font-style: italic;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 6px;
    margin: 15px 0;
}

.message-error {
    color: #f44336;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
    font-weight: 500;
}

.message-success {
    color: #4CAF50;
    background: #e8f5e8;
    border: 1px solid #c8e6c9;
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
    font-weight: 500;
}

/* Access Denied Styling */
#access-denied {
    color: #f44336;
}

#access-denied h2 {
    color: #f44336;
}

#access-denied a.btn {
    display: inline-block;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    margin-top: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#access-denied a.btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

/* Delivery Menu Styling */
#delivery-menu {
    text-align: left;
    padding: 0;
}

#delivery-menu h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #4CAF50;
}

#dutchie-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#dutchie-container iframe {
    width: 100%;
    min-height: 800px;
    border: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #delivery-auth-gate {
        margin: 20px;
        padding: 20px;
        max-width: none;
    }
    
    .auth-step h2 {
        font-size: 20px;
    }
    
    .auth-step input[type="email"],
    .auth-step input[type="tel"],
    .auth-step input[type="text"] {
        max-width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .auth-step button {
        width: 100%;
        max-width: 300px;
    }
    
    #dutchie-container iframe {
        min-height: 600px;
    }
}

/* Loading Animation */
.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

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

/* OTP Input Special Styling */
#otp-input {
    font-family: 'Courier New', monospace;
    letter-spacing: 4px;
    font-weight: bold;
    font-size: 20px !important;
}

/* Step Transitions */
.auth-step {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}