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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.logo {
    max-width: 200px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.main-content {
    padding: 40px 30px;
}

.unsubscribe-card h1 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.unsubscribe-card p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
}

.unsubscribe-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 500;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group input.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    display: block;
    min-height: 20px;
}

.unsubscribe-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.unsubscribe-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.unsubscribe-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #c3e6cb;
    margin-top: 20px;
}

.loading {
    text-align: center;
    color: #6c757d;
    margin-top: 20px;
}

.loading p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loading p::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.footer p {
    color: #6c757d;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        margin: 10px;
        border-radius: 12px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .unsubscribe-card h1 {
        font-size: 24px;
    }
    
    .unsubscribe-card p {
        font-size: 15px;
    }
}
