:root {
    --bg-color: #0a0a0c;
    --panel-bg: rgba(20, 20, 25, 0.7);
    --panel-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Colors inspired by Love First Church Logo */
    --brand-pink: #ec4899;
    --brand-blue: #3b82f6;
    --brand-yellow: #facc15;
    
    --primary-glow: rgba(59, 130, 246, 0.25);
    --secondary-glow: rgba(236, 72, 153, 0.25);
    --accent-glow: rgba(250, 204, 21, 0.15);
    
    --input-bg: rgba(255, 255, 255, 0.03);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-focus: var(--brand-blue);
    
    --btn-bg: linear-gradient(135deg, var(--brand-blue), var(--brand-pink));
    --btn-hover: linear-gradient(135deg, #2563eb, #db2777);
    --error-color: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Background Glows */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.7;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--primary-glow);
    animation-delay: 0s;
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: var(--secondary-glow);
    animation-delay: -5s;
}

.orb-3 {
    top: 30%;
    left: 50%;
    width: 35vw;
    height: 35vw;
    background: var(--accent-glow);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Main Container */
.container {
    width: 100%;
    max-width: 520px;
    padding: 2rem 1.5rem;
    z-index: 1;
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--panel-border);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* Header */
.header-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.15));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover {
    transform: scale(1.08) rotate(-2deg);
}

.form-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.form-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Form Styles */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.required {
    color: var(--brand-pink);
    margin-left: 2px;
}

input, select {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    padding: 1.1rem 1.2rem;
    border-radius: 14px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

input::placeholder {
    color: var(--text-muted);
}

input:hover, select:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

input:focus, select:focus {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.08);
}

/* Animated Border on Focus */
.focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-pink));
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
    border-radius: 0 0 14px 14px;
}

input:focus ~ .focus-border, 
select:focus ~ .focus-border {
    width: 100%;
}

.help-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    margin-left: 0.5rem;
    font-weight: 300;
}

/* Custom Select */
.select-wrapper {
    position: relative;
}

.select-icon {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: transform 0.3s ease;
}

select:focus ~ .select-icon {
    transform: translateY(-50%) rotate(180deg);
    color: var(--text-primary);
}

select option {
    background: #111827;
    color: white;
}

/* Submit Button */
.submit-btn {
    margin-top: 1.5rem;
    background: var(--btn-bg);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3), 0 8px 25px rgba(236, 72, 153, 0.3);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.7s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4), 0 12px 30px rgba(236, 72, 153, 0.4);
    background: var(--btn-hover);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(1px);
}

/* Loader */
.btn-loader {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loader {
    display: block;
}

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

/* Footer Link */
.footer-link {
    text-align: center;
    margin-top: 2.5rem;
}

.footer-link a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.03);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid transparent;
}

.footer-link a:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(16, 185, 129, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100;
    opacity: 0;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .glass-panel {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }
    
    .form-title {
        font-size: 1.8rem;
    }
}
