/**
 * GiveCircle - Donation Theme CSS
 * Light Green Charity/Donation Theme
 */

/* ============================================
   COLOR VARIABLES
   ============================================ */
:root {
    /* Primary Donation Colors */
    --primary-green: #28a745;
    --light-green: #d4edda;
    --dark-green: #1e7e34;
    --success-green: #28a745;
    --soft-green: #e8f5e9;
    
    /* Supporting Colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-gray: #e0e0e0;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --shadow: rgba(0, 0, 0, 0.1);
    
    /* Donation Accents */
    --gold: #ffc107;
    --soft-blue: #17a2b8;
    --warm-orange: #fd7e14;
    --heart-red: #dc3545;
    
    /* Gradients */
    --gradient-green: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    --gradient-light: linear-gradient(135deg, #e8f5e9 0%, #d4edda 100%);
}

/* ============================================
   GLOBAL RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   AUTH PAGES (LOGIN & REGISTER)
   ============================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--gradient-light);
    position: relative;
    overflow: hidden;
}

/* Floating donation icons background */
.auth-container::before {
    content: '💚';
    position: absolute;
    font-size: 100px;
    opacity: 0.05;
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.auth-container::after {
    content: '🤝';
    position: absolute;
    font-size: 120px;
    opacity: 0.05;
    bottom: 10%;
    right: 10%;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Auth Box */
.auth-box {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    max-width: 450px;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Auth Header */
.auth-header {
    background: var(--gradient-green);
    padding: 40px 30px;
    text-align: center;
    color: var(--white);
    position: relative;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="80" r="3" fill="white" opacity="0.1"/><circle cx="50" cy="50" r="1.5" fill="white" opacity="0.1"/></svg>');
    background-size: 50px 50px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

.auth-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
    position: relative;
    z-index: 1;
}

/* Auth Body */
.auth-body {
    padding: 40px 30px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-label .required {
    color: var(--heart-red);
    margin-left: 3px;
}

/* Input Fields */
.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-gray);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    background: var(--soft-green);
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
}

.form-control::placeholder {
    color: #adb5bd;
}

/* Input with Icon */
.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
}

.input-group .form-control {
    padding-left: 50px;
}

/* Help Text */
.form-help {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Success Message */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: var(--light-green);
    color: var(--dark-green);
    border: 1px solid var(--success-green);
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    width: 100%;
}

.btn-primary {
    background: var(--gradient-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: var(--white);
}

/* Loading State */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Auth Footer */
.auth-footer {
    padding: 20px 30px;
    background: var(--light-gray);
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-gray);
}

.divider span {
    padding: 0 15px;
}

/* Referral Info Box */
.referral-info {
    background: var(--soft-green);
    border: 2px dashed var(--primary-green);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.referral-info .icon {
    font-size: 30px;
    margin-bottom: 5px;
}

.referral-info .text {
    font-size: 14px;
    color: var(--dark-green);
}

.referral-info .username {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 18px;
}

/* Password Strength Indicator */
.password-strength {
    height: 4px;
    background: var(--border-gray);
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak { background: var(--heart-red); width: 33%; }
.strength-medium { background: var(--warm-orange); width: 66%; }
.strength-strong { background: var(--success-green); width: 100%; }

/* Checkbox & Terms */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-green);
}

.form-check label {
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1.5;
}

.form-check a {
    color: var(--primary-green);
    text-decoration: none;
}

.form-check a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .auth-box {
        margin: 20px;
    }
    
    .auth-header {
        padding: 30px 20px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .auth-body {
        padding: 30px 20px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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

/* Heart Animation for Donation Theme */
.heart-pulse {
    display: inline-block;
    animation: heartPulse 1.5s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
