/* ============================================
   HappenGrid Login Page - Exact Match Styles
   ============================================ */

/* CSS Variables */
:root {
    --background: hsl(240, 15%, 8%);
    --foreground: hsl(0, 0%, 98%);
    --card: hsl(240, 15%, 10%);
    --card-foreground: hsl(0, 0%, 98%);
    --popover: hsl(240, 15%, 10%);
    --popover-foreground: hsl(0, 0%, 98%);
    --primary: hsl(270, 80%, 65%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(240, 15%, 15%);
    --secondary-foreground: hsl(0, 0%, 98%);
    --muted: hsl(240, 10%, 20%);
    --muted-foreground: hsl(240, 5%, 60%);
    --accent: hsl(280, 85%, 70%);
    --accent-foreground: hsl(0, 0%, 100%);
    --destructive: hsl(0, 62.8%, 50%);
    --destructive-foreground: hsl(0, 0%, 98%);
    --border: hsl(240, 15%, 20%);
    --input: hsl(240, 15%, 15%);
    --ring: hsl(270, 80%, 65%);
    --radius: 0.75rem;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(270, 80%, 65%), hsl(280, 85%, 70%));
    
    /* Shadows */
    --shadow-glow: 0 0 30px hsla(270, 80%, 65%, 0.2);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    background-image: radial-gradient(circle at 50% 50%, rgba(20, 20, 25, 0.65), var(--background)), url("../images/hero-bg.95c8fc0289d5.jpeg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--foreground);
    min-height: 100vh;
    line-height: 1.6;
}

/* Auth Container */
.auth-container {
    display: flex;
    min-height: 100vh;
}

/* Form Section */
.form-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--background);
}

@media (max-width: 1023px) {
    .form-section {
        background-color: hsla(240, 15%, 8%, 0.88);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

@media (min-width: 1024px) {
    .form-section {
        width: 50%;
    }
}

.form-wrapper {
    width: 100%;
    max-width: 28rem;
    animation: fadeInLeft 0.5s ease-out;
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    text-decoration: none;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

img.logo-icon {
    background: transparent;
    object-fit: contain;
}

.logo-icon span {
    color: var(--primary-foreground);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Auth Title & Subtitle */
.auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

/* Role Selection */
.role-section {
    margin-bottom: 1.5rem;
}

.role-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.role-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.role-btn {
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background-color: var(--card);
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
}

.role-btn:hover {
    border-color: hsla(270, 80%, 65%, 0.5);
}

.role-btn.active {
    border-color: var(--primary);
    background-color: hsla(270, 80%, 65%, 0.1);
    color: var(--primary);
}

.role-btn span {
    font-weight: 500;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group.hidden {
    display: none;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    pointer-events: none;
}

.form-input {
    width: 100%;
    height: 2.75rem;
    padding: 0 1rem 0 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--input);
    color: var(--foreground);
    font-family: inherit;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px hsla(270, 80%, 65%, 0.2);
}

.form-input::placeholder {
    color: var(--muted-foreground);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--foreground);
}

 

/* Interests Tags / Chips */ 

.interests-container { 

    display: flex; 

    flex-wrap: wrap; 

    gap: 0.5rem; 

    margin-top: 0.25rem; 

} 

 

.interest-chip { 

    padding: 0.5rem 1rem; 

    border-radius: 2rem; 

    border: 1px solid var(--border); 

    background-color: var(--card); 

    color: var(--muted-foreground); 

    font-size: 0.875rem; 

    cursor: pointer; 

    transition: all 0.2s ease; 

    user-select: none; 

    font-family: inherit; 

} 

 

.interest-chip:hover { 

    border-color: hsla(270, 80%, 65%, 0.5); 

    background-color: hsla(270, 80%, 65%, 0.05); 

} 

 

.interest-chip.active { 

    border-color: var(--primary); 

    background: var(--gradient-primary); 

    color: var(--primary-foreground); 

    box-shadow: 0 2px 10px hsla(270, 80%, 65%, 0.2); 

}

@keyframes shake { 

0%, 100% { transform: translateX(0); } 

25% { transform: translateX(-5px); } 

75% { transform: translateX(5px); } 

} 

 

.interest-chip.shake { 

animation: shake 0.3s ease-in-out; 

} 

/* Volunteer Box */
.volunteer-box {
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: hsla(240, 15%, 15%, 0.5);
    border: 1px solid var(--border);
}

.volunteer-box.hidden {
    display: none;
}

.volunteer-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.volunteer-checkbox {
    margin-top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.volunteer-content {
    display: flex;
    flex-direction: column;
}

.volunteer-title {
    font-weight: 500;
    color: var(--foreground);
}

.volunteer-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Login Options */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.login-options.hidden {
    display: none;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.remember-checkbox {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.remember-me span {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.forgot-password {
    background: none;
    border: none;
    font-size: 0.875rem;
    color: var(--primary);
    cursor: pointer;
    font-family: inherit;
    transition: text-decoration 0.2s ease;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    height: 2.75rem;
    border-radius: var(--radius);
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 4px 15px hsla(270, 80%, 65%, 0.3);
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px hsla(270, 80%, 65%, 0.4);
}

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

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.arrow-icon {
    transition: transform 0.2s ease;
}

.submit-btn:hover .arrow-icon {
    transform: translateX(4px);
}

/* Loader */
.loader {
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.loader.hidden {
    display: none;
}

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

/* Toggle Mode */
.toggle-mode {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--muted-foreground);
}

.toggle-mode button {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    margin-left: 0.25rem;
}

.toggle-mode button:hover {
    text-decoration: underline;
}

/* Image Section */
.image-section {
    display: none;
    position: relative;
}

@media (min-width: 1024px) {
    .image-section {
        display: block;
        width: 50%;
    }
}

.bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gradient-overlay-left {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--background), hsla(240, 15%, 8%, 0.5), transparent);
}

.gradient-overlay-bottom {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--background), transparent, transparent);
}

/* Content Overlay */
.content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
}

.testimonial-card {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: hsla(240, 15%, 10%, 0.7);
    border: 1px solid hsla(270, 80%, 65%, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

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

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.testimonial-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
}

.testimonial-title {
    font-weight: 600;
    color: var(--foreground);
}

.testimonial-members {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.testimonial-quote {
    color: var(--muted-foreground);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: hsla(270, 80%, 65%, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
}

.author-name {
    font-weight: 500;
    color: var(--foreground);
}

.author-role {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted-foreground);
}

/*footer*/ 
a{
    text-decoration: none;
}
footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 4rem 0;
    padding-left: 8%;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-top {
        grid-template-columns: 2fr repeat(4, 1fr);
    }
}

.footer-brand {
    grid-column: span 2;
}

@media (min-width: 1024px) {
    .footer-brand {
        grid-column: span 1;
    }
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    max-width: 20rem;
    margin-bottom: 1.5rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

a.contact-link:hover {
    color: var(--primary);
}

.footer-links-group h4 {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.copyright {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--primary);
    color: var(--primary-foreground);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    width: 100%;
    max-width: 28rem;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .auth-modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: var(--secondary);
    color: var(--foreground);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: hsla(270, 80%, 65%, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: inset 0 0 20px hsla(270, 80%, 65%, 0.1);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}
/* Google Login Button */
.google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
    font-family: inherit;
}

.google-btn:hover {
    background-color: var(--secondary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

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

.google-icon {
    width: 20px;
    height: 20px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--border);
}

.divider-text {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--border);
}

/* Features Card */
.features-card {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: hsla(240, 15%, 10%, 0.7);
    border: 1px solid hsla(270, 80%, 65%, 0.2);
    border-radius: 1.5rem;
    padding: 2.5rem;
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

.features-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 2rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: hsla(270, 80%, 65%, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.feature-content h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--foreground);
    font-size: 1rem;
}

.feature-content p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}
