:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --secondary-color: #1F2937;
    --success-color: #059669;
    --danger-color: #DC2626;
    --background-color: #F3F4F6;
    --card-background: #FFFFFF;
    --border-color: #E5E7EB;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.email-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

.email-success-message {
    background-color: #d4edda;
    color: #155724;
}

.email-error-message {
    background-color: #f8d7da;
    color: #721c24;
}
.email-success-message {
    margin-top: 15px;
    padding: 10px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.redemption-card {
    background-color: var(--card-background);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.card-header {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(to right, var(--primary-color), var(--primary-hover));
    color: white;
}

.card-header h1 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.card-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.button-primary,
.button-secondary {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.button-primary {
    background-color: var(--primary-color);
    color: white;
}

.button-primary:hover {
    background-color: var(--primary-hover);
}
.language-switcher {
    border-radius: 13px;
    position: absolute;
    top: 0px;
    right: 0px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 10px;
}

.home-link {
    display: flex;
    align-items: center;
    color: #2C3E50;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.home-link:hover {
    background-color: rgba(44, 62, 80, 0.1);
}

.home-icon {
    margin-right: 4px;
    font-size: 16px;
}

.switcher-divider {
    height: 20px;
    width: 1px;
    background-color: #ddd;
    margin: 0 5px;
}

.button-secondary {
    background-color: #EEF2FF;
    color: var(--primary-color);
}

.button-secondary:hover {
    background-color: #E0E7FF;
}

.button-primary:disabled,
.button-secondary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.result-section {
    margin-top: 0rem;
    padding-top: 0rem;
    border-top: 0px solid var(--border-color);
}

.result-header {
    margin-bottom: 1.5rem;
}

.result-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.info-group {
    margin-bottom: 1rem;
}

.info-group label {
    font-weight: 500;
    color: var(--text-secondary);
}

.info-value {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-top: 0.25rem;
}

.code-display {
    font-family: monospace;
    background-color: #F3F4F6;
    padding: 0.5rem;
    border-radius: 0.375rem;
    word-break: break-all;
}

.email-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}
/* Add these styles to your existing style.css */
.success-message {
    background-color: #ECFDF5;
    color: #059669;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: center;
}

.success-code {
    background-color: #4640ca !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.result-section {
    margin-top: 0rem;
}

.result-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.info-group {
    margin-bottom: 1rem;
}

.info-group:last-child {
    margin-bottom: 0;
}

.info-group label {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1.125rem;
    color: #1F2937;
}

.code-display {
    font-family: 'Courier New', monospace;
    padding: 0.75rem;
    border-radius: 0.375rem;
    word-break: break-all;
    letter-spacing: 0.05em;
}

.email-section {
    border-top: 1px solid #E5E7EB;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}
.alert-error {
    background-color: #FEE2E2;
    color: var(--danger-color);
    border: 1px solid #FECACA;
}

.alert-success {
    background-color: #ECFDF5;
    color: var(--success-color);
    border: 1px solid #A7F3D0;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .card-header {
        padding: 1.5rem 1rem;
    }

    .card-header h1 {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 1.5rem 1rem;
    }
}