/* Guest Checkout Modal Styles */

.guest-auth-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.guest-auth-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.guest-auth-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: slideUp 0.4s ease-out;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.guest-auth-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f4e4bc, #d4af37);
    border-radius: 20px 20px 0 0;
}

.guest-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.guest-modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #d4af37, #f4e4bc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.guest-modal-title {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: #d4af37;
    margin-bottom: 10px;
    font-weight: 600;
}

.guest-modal-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: #b8b8b8;
    line-height: 1.6;
}

.guest-auth-form {
    margin-top: 30px;
}

.guest-form-group {
    margin-bottom: 25px;
}

.guest-form-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    color: #d4af37;
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.guest-form-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Cormorant Garamond', serif;
    transition: all 0.3s ease;
}

.guest-form-input:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.guest-form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.guest-form-note {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
    font-style: italic;
}

.guest-continue-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #d4af37, #f4e4bc);
    border: none;
    border-radius: 10px;
    color: #1a1a2e;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.guest-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.guest-continue-btn:active {
    transform: translateY(0);
}

.guest-continue-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.guest-modal-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.guest-modal-footer-text {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.guest-register-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.guest-register-link:hover {
    color: #f4e4bc;
    text-decoration: underline;
}

.guest-security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.guest-security-icon {
    color: #4caf50;
    font-size: 20px;
}

.guest-security-text {
    font-size: 13px;
    color: #4caf50;
    font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.guest-continue-btn.loading {
    position: relative;
    color: transparent;
}

.guest-continue-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid #1a1a2e;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error State */
.guest-form-input.error {
    border-color: #ff4444;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.guest-error-message {
    color: #ff4444;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

.guest-error-message.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .guest-auth-modal {
        padding: 30px 20px;
        max-width: 95%;
    }
    
    .guest-modal-title {
        font-size: 24px;
    }
    
    .guest-modal-subtitle {
        font-size: 14px;
    }
    
    .guest-form-input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .guest-continue-btn {
        padding: 15px;
        font-size: 14px;
    }
}

/* Hieroglyphic Decorations */
.guest-modal-decoration {
    position: absolute;
    font-size: 40px;
    opacity: 0.1;
    color: #d4af37;
    pointer-events: none;
}

.guest-modal-decoration.top-left {
    top: 20px;
    left: 20px;
}

.guest-modal-decoration.top-right {
    top: 20px;
    right: 20px;
}

.guest-modal-decoration.bottom-left {
    bottom: 20px;
    left: 20px;
}

.guest-modal-decoration.bottom-right {
    bottom: 20px;
    right: 20px;
}
