/* --- 1. GLOBAL & VARIABLES --- */
:root {
    --primary-purple: #6d28d9;
    --dark-purple: #4c1d95;
    --light-bg: #fdfcff;
    --text-main: #111827;
    --text-muted: #4b5563;
    --border-color: #f3f4f6;
    --white: #ffffff;
}

body {
    background-color: var(--light-bg);
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
}

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

/* --- 2. HERO SECTION --- */
.donate-hero {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
    padding: 100px 0 160px 0;
    text-align: center;
    color: var(--white);
}

.donate-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.donate-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- 3. CONTENT WRAPPER & GRID --- */
.content-wrapper {
    margin-top: -100px; /* Overlap effect */
    padding-bottom: 100px;
}

.donate-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
}

/* --- 4. LEFT SIDE: IMPACT INFO --- */
.impact-section {
    padding-top: 120px;
}

.impact-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 40px;
}

.impact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.icon-box {
    background: #ede9fe;
    padding: 15px;
    border-radius: 16px;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box i {
    color: var(--primary-purple);
    width: 28px;
    height: 28px;
}

.impact-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.impact-text p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- 5. RIGHT SIDE: DONATION CARD --- */
.donation-card {
    background: var(--white);
    padding: 40px;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

/* Auth Toggle */
.auth-toggle {
    display: flex;
    background: #f3f4f6;
    padding: 5px;
    border-radius: 14px;
    margin-bottom: 30px;
}

.toggle-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    color: #6b7280;
    transition: 0.3s ease;
}

.toggle-btn.active {
    background: var(--white);
    color: var(--primary-purple);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.auth-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    margin-top: -10px;
}

/* Input Fields */
.auth-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #374151;
}

.input-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: 0.2s;
}

.input-group input:focus {
    border-color: var(--primary-purple);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.1);
}

.form-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 35px 0;
}

/* Amount Selection */
.donation-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
}

.amount-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.amount-btn {
    background: var(--white);
    border: 2px solid var(--border-color);
    padding: 18px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-btn:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

.amount-btn.active {
    background: #f5f3ff;
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

/* Custom Input */
.custom-amount-wrapper {
    position: relative;
    margin-bottom: 35px;
}

.currency-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 800;
    color: #9ca3af;
}

#otherAmount {
    width: 100%;
    padding: 18px 18px 18px 65px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    background: #f9fafb;
    font-size: 1.2rem;
    font-weight: 800;
    box-sizing: border-box;
    outline: none;
}

/* Main Button */
.submit-donation {
    width: 100%;
    background: var(--primary-purple);
    color: var(--white);
    padding: 22px;
    border: none;
    border-radius: 18px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.submit-donation:hover {
    background: var(--dark-purple);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(109, 40, 217, 0.25);
}

/* --- 6. RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .donate-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .content-wrapper {
        margin-top: -60px;
    }
    
    .impact-section {
        padding-top: 40px;
        order: 2; /* Move text below card on mobile */
    }

    .donation-card {
        order: 1;
        padding: 30px 20px;
    }

    .donate-hero h1 {
        font-size: 2.8rem;
    }
}