:root {
    /* WhatsApp inspired color palette */
    --whatsapp-green: #25D366;
    --whatsapp-dark-green: #128C7E;
    --whatsapp-light-green: #DCF8C6;
    --whatsapp-teal: #075E54;
    --whatsapp-blue: #34B7F1;
    --whatsapp-gray: #ECE5DD;
    --whatsapp-dark-gray: #3C3C3C;
    --whatsapp-light-gray: #F0F2F5;
    --whatsapp-border: #E9EDEF;
    --whatsapp-text: #111B21;
    --whatsapp-text-secondary: #667781;
    --whatsapp-hover: #F5F6F6;

    /* Primary colors based on WhatsApp */
    --primary-green: var(--whatsapp-green);
    --primary-dark-green: var(--whatsapp-dark-green);
    --primary-teal: var(--whatsapp-teal);
    --primary-blue: var(--whatsapp-blue);
    --accent-light-green: var(--whatsapp-light-green);

    /* Neutral colors */
    --gray-50: #FAFAFA;
    --gray-100: var(--whatsapp-light-gray);
    --gray-200: var(--whatsapp-border);
    --gray-300: #D1D7DB;
    --gray-400: #BDC3C7;
    --gray-500: var(--whatsapp-text-secondary);
    --gray-600: #54656F;
    --gray-700: #374151;
    --gray-800: var(--whatsapp-text);
    --gray-900: #0B141A;

    /* Semantic colors */
    --white: #FFFFFF;
    --black: #000000;
    --success-green: var(--whatsapp-green);
    --error-red: #E53E3E;
    --warning-yellow: #F59E0B;
    --info-blue: var(--whatsapp-blue);

    /* Background colors */
    --bg-primary: var(--white);
    --bg-secondary: var(--whatsapp-light-gray);
    --bg-accent: var(--whatsapp-gray);
    --bg-hover: var(--whatsapp-hover);

    /* WhatsApp gradients */
    --gradient-primary: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark-green) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--whatsapp-teal) 0%, var(--whatsapp-dark-green) 100%);
    --gradient-accent: linear-gradient(135deg, var(--whatsapp-blue) 0%, var(--whatsapp-green) 100%);
    --gradient-header: linear-gradient(135deg, var(--whatsapp-teal) 0%, var(--whatsapp-dark-green) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-whatsapp: 0 2px 6px rgba(11, 20, 26, 0.1);

    /* Spacing */
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --border-radius-lg: 18px;
    --border-radius-xl: 24px;

    /* Typography */
    --font-family-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-family-secondary: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    color: var(--whatsapp-text);
    background: var(--bg-secondary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-secondary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
} */

.gradient-text {
    background: blue;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Glass Morphism Components - WhatsApp Theme */
.glass-card {
    background: var(--bg-primary);
    /* backdrop-filter: blur(20px); */
    /* -webkit-backdrop-filter: blur(20px); */
    /* border: 1px solid var(--whatsapp-border); */
    /* border-radius: var(--border-radius); */
    /* box-shadow: var(--shadow-whatsapp); */
    padding: 2rem;
    transition: all 0.3s ease;
}

.container-fluid {
    --bs-gutter-x: none;
}


.glass-card:hover {
    transform: none !important;
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12); */
    /* border-color: var(--whatsapp-green); */
}

/* Navigation - White Theme */
.glass-nav {
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--whatsapp-border);
    transition: all 0.3s ease;
    padding: 1rem 0;
    box-shadow: var(--shadow-whatsapp);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
}

.navbar-brand img {
    filter: none;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    color: var(--whatsapp-text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--whatsapp-green);
    background: var(--bg-hover);
}

.glass-dropdown {
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--whatsapp-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1055;
}

.glass-dropdown .dropdown-item {
    color: var(--whatsapp-text);
    transition: all 0.3s ease;
}

.glass-dropdown .dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--whatsapp-green);
}

.avatar-placeholder {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-gradient-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-gradient-primary:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

.btn-gradient-primary:active {
    transform: translateY(0);
}

.btn-google {
    background: var(--bg-primary);
    color: var(--gray-900);
    border: 2px solid var(--whatsapp-border);
    box-shadow: var(--shadow-md);
    font-weight: 600;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-google::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: left 0.5s ease;
}

.btn-google:hover::before {
    left: 100%;
}

.btn-google:hover {
    color: var(--whatsapp-text);
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--whatsapp-green);
}

.btn-outline-light,
.btn-google {
    border: 2px solid #2563eb;
    color: #111;
    background: transparent;
    transition: all 0.3s;
}

/* .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
} */
.btn-outline-light:hover,
.btn-google:hover,
.btn-google:focus {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Hero Section - WhatsApp Theme */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%,
            rgba(37, 211, 102, 0.05) 0%,
            transparent 50%),
        radial-gradient(circle at 70% 20%,
            rgba(7, 94, 84, 0.03) 0%,
            transparent 50%),
        radial-gradient(circle at 20% 80%,
            rgba(52, 183, 241, 0.03) 0%,
            transparent 50%);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: float var(--duration, 6s) ease-in-out infinite var(--delay, 0s);
}


.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-content {
    color: var(--whatsapp-text);
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--whatsapp-text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--whatsapp-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-sm);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.feature-item i {
    color: var(--accent-orange);
    font-size: 1.25rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-card {
    max-width: 500px;
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.hero-card .card-header h5 {
    color: var(--gray-800);
    margin: 0;
    font-weight: 600;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-orange);
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Features Section - WhatsApp Theme */
.features-section {
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    color: var(--whatsapp-text);
    border-top: 1px solid var(--whatsapp-border);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--gray-900);
}

.brand-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.brand-logo {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    color: var(--gray-700);
    backdrop-filter: blur(10px);
    /* border: 1px solid rgba(0, 0, 0, 0.1); */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-card {
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}


/* .feature-card:hover {
    transform: translateY(-8px);
} */

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.feature-card h4 {
    color: var(--gray-800);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Auth Sections - WhatsApp Theme */
.auth-section {
    min-height: 100vh;
    position: relative;
    padding-top: 80px;
    background: var(--bg-secondary);
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%,
            rgba(37, 211, 102, 0.03) 0%,
            transparent 50%),
        radial-gradient(circle at 80% 20%,
            rgba(7, 94, 84, 0.02) 0%,
            transparent 50%),
        radial-gradient(circle at 40% 40%,
            rgba(52, 183, 241, 0.02) 0%,
            transparent 50%);
}


.auth-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    min-height: 650px;
    position: relative;
}

.auth-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
}

.auth-brand {
    background: var(--gradient-primary);
    /* background: linear-gradient(135deg, #f0c557 0%, #dadabc 100%); */
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 30%),
        radial-gradient(circle at 70% 70%,
            rgba(255, 255, 255, 0.15) 0%,
            transparent 40%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.6;
}

.brand-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.brand-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.brand-features {
    margin-bottom: 2rem;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.brand-feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.brand-feature .feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
    margin: unset;
    flex-shrink: 0;
}

.brand-feature .feature-content h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.brand-feature .feature-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
    line-height: 1.4;
}

.trusted-by {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.trusted-by p {
    font-size: large;
    margin-bottom: 1rem;
    font-weight: 600;
}

.trusted-by .brand-logos {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.trusted-by .brand-logos span {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Auth Form Styles */
.auth-form {
    background: var(--gradient-glass-light);
    /* backdrop-filter: blur(20px); */
    /* -webkit-backdrop-filter: blur(20px); */
    /* padding: 3rem; */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.auth-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    pointer-events: none;
}


.form-container {
    width: 100%;
    /* max-width: 480px; */
    background: var(--bg-primary);
    /* backdrop-filter: blur(20px); */
    /* border: 1px solid var(--whatsapp-border); */
    /* border-radius: 20px; */
    /* padding: 2.5rem; */
    /* box-shadow: var(--shadow-lg); */
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.form-header {

    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3,
.form-header h4 {
    color: var(--whatsapp-text);
    margin-bottom: 0.5rem;
}

.form-header h4 {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.form-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header p {
    color: var(--whatsapp-text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--gray-300) 20%,
            var(--gray-300) 80%,
            transparent 100%);
}

.divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 1.5rem;
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-floating {
    position: relative;
    /* margin-bottom: 1.5rem; */
}

.form-floating .form-control {
    border: 2px solid var(--whatsapp-border);
    border-radius: 12px;
    padding: 1.25rem 1rem 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    height: 58px;
    color: var(--whatsapp-text);
}

.form-floating .form-control:focus {
    border-color: var(--whatsapp-green);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1),
        0 4px 12px rgba(37, 211, 102, 0.15);
    outline: none;
    /* background: var(--bg-primary); */
    transform: translateY(-1px);
}

.form-floating .form-control:not(:placeholder-shown) {
    border-color: var(--whatsapp-green);
    background: var(--bg-primary);
}

/* Base label style */
.form-floating label {
    position: absolute;
    top: 50%;
    /* left: 1rem; */
    transform: translateY(-50%);
    color: var(--whatsapp-text-secondary);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    /* background: var(--bg-primary); */
    /* padding: 0 0.25rem; */
}

/* When input is focused or filled, float the label up */
.form-floating .form-control:focus~label,
.form-floating .form-control:not(:placeholder-shown)~label {
    top: 0rem;
    /* left: 0.75rem; */
    font-size: 0.81rem;
    color: var(--whatsapp-green);
    /* font-weight: 600; */
    /* text-transform: uppercase; */
}

/* .form-select.is-valid::after #countryCode {
    background-color: transparent;

} */
.form-floating>.form-select.is-valid~label {
    /* color: var(--success-green); */
    padding-top: none;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    z-index: 10;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.password-toggle:hover {
    color: var(--primary-blue);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.form-footer {
    text-align: center;

    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.form-footer p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.95rem;
}

.form-footer a,
.forgot-password {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.form-footer a::after,
.forgot-password::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.form-footer a:hover::after,
.forgot-password:hover::after {
    width: 100%;
}

.form-footer a:hover,
.forgot-password:hover {
    color: var(--primary-purple);
    text-decoration: none;
}

/* Enhanced button styles */
.btn-gradient-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    /* border-radius: 12px; */
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-gradient-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.5s ease;
}

.btn-gradient-primary:hover::before {
    left: 100%;
}

.btn-gradient-primary:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    filter: brightness(1.1);
}

.btn-gradient-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Form enhancements */
.auth-form-content {
    position: relative;
}

.form-floating.mb-3:last-of-type {
    margin-bottom: 2rem !important;
}

/* Loading spinner for buttons */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

/* Form validation styles */
.form-floating .form-control.is-invalid {
    border-color: var(--error-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-floating .form-control.is-valid {
    border-color: var(--success-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.field-error {
    color: var(--error-red);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

.field-error::before {
    content: '⚠';
    font-size: 0.9rem;
}

/* Modern animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ripple {
    from {
        transform: scale(0);
        opacity: 1;
    }

    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Enhanced focus states */
.form-floating .form-control:focus {
    animation: focusPulse 0.3s ease-out;
}

@keyframes focusPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* Modern glassmorphism enhancements */
.glass-card {
    position: relative;
}

.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.02) 100%);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-card:hover::before {
    opacity: 1;
}

/* Fix signup form alignment */
.auth-container .row.mb-3 {
    margin-left: 0;
    margin-right: 0;
}

.auth-container .row.mb-3 .col-4,
.auth-container .row.mb-3 .col-8 {
    padding-left: 0;
    padding-right: 0;
}

.auth-container .row.mb-3 .col-4 {
    padding-right: 0.5rem;
}

.auth-container .row.mb-3 .col-8 {
    padding-left: 0.5rem;
}

/* Responsive enhancements */
/* Added a new media query for larger tablets and small desktops */
@media (max-width: 992px) {

    .container-fluid {
        --bs-gutter-x: none;
    }

    .auth-background {
        display: none;
        /* Hide background image on smaller screens for better focus on content */
    }

    /* Ensure auth-container remains centered and responsive */
    .auth-container {
        margin: 1rem;
        /* Add some margin on sides for smaller screens */
    }

    .social-login-buttons {
        flex-direction: column;
        /* Stack social buttons vertically */
        gap: 0.75rem;
        /* Add some space between stacked buttons */
    }

    .flash-messages {
        left: 1rem;
        right: 1rem;
        max-width: none;
        /* Allow flash messages to take full width */
    }
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .container-fluid {
        --bs-gutter-x: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Specific adjustments for auth-container stacking */
    .auth-container {
        flex-direction: column;
        /* Stack auth-brand and auth-form vertically */
        min-height: auto;
        /* Remove fixed min-height for stacked layout */
        /* margin: 1rem;  */
        /* Ensure margin is applied */
    }

    .auth-brand {
        padding: 2rem;
        /* Adjust padding for stacked brand section */
        min-height: auto;
        /* Remove fixed min-height */
        border-radius: 24px 24px 0 0;
        /* Adjust border-radius for top part when stacked */
    }

    .auth-form {
        padding: 2rem;
        /* Adjust padding for stacked form section */
        border-radius: 0 0 24px 24px;
        /* Adjust border-radius for bottom part when stacked */
    }

    .form-container {
        padding: 2rem 1.5rem;
        /* Adjust padding inside form container */
    }

    .form-header h3 {
        font-size: 1.5rem;
        /* Adjust font size for form header */
    }

    .welcome-title {
        font-size: 2rem;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .btn-gradient-primary,
    .btn-google {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .flash-messages {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }

    @media (max-width: 576px) {


        .glass-card {
            padding: 1.5rem;
        }

        .hero-title {
            font-size: 2rem;
        }

        .section-title {
            font-size: 2rem;
        }

        .brand-logos {
            gap: 1rem;
        }

        .brand-logo {
            font-size: 0.8rem;
            padding: 0.4rem 0.8rem;
        }

        .feature-item {
            flex-direction: column;
            text-align: center;
            gap: 0.5rem;
        }

        .flash-messages {
            left: 0.5rem;
            /* Further reduce left/right margin on very small screens */
            right: 0.5rem;
            padding: 0.6rem;
            /* Reduce padding for flash messages */
            font-size: 0.85rem;
            /* Smaller font size for flash messages */
        }

        /* Ensure buttons and form controls are appropriately sized on small screens */
        .form-control {
            padding: 0.6rem 0.8rem;
            /* Smaller padding for inputs */
            font-size: 0.9rem;
            /* Smaller font size for inputs */
        }

        .btn-primary,
        .social-login-buttons .btn {
            padding: 0.6rem 1.2rem;
            /* Smaller padding for buttons */
            font-size: 0.9rem;
            /* Smaller font size for buttons */
        }

        /* Ensure social buttons are full width on small screens */
        .social-login-buttons .btn {
            width: 100%;
        }
    }

    /* Animations and Micro-interactions */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 576px) {
    .container-fluid {
        --bs-gutter-x: none;
    }

    .auth-container {
        flex-direction: column;
    }

    .auth-brand {
        border-radius: 24px 24px 0 0;
    }

    .auth-form {
        border-radius: 0 0 24px 24px;
    }

    .hero-title,
    .section-title {
        font-size: 2rem;
    }

    .hero-features {
        gap: 0.75rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-gradient-primary,
    .btn-google {
        width: 100%;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .brand-logos {
        gap: 1rem;
    }

    .brand-logo {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .flash-messages {
        left: 0.5rem;
        right: 0.5rem;
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .btn-primary,
    .social-login-buttons .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        /* width: 100%; */
    }
}


/* Sign-in specific styles */
.signin-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.visual-element {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-element i.fa-user-circle {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.8);
}

.message-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-bubble {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    animation: bubble 3s ease-in-out infinite;
}

.message-bubble:nth-child(1) {
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.message-bubble:nth-child(2) {
    bottom: -20px;
    left: -20px;
    animation-delay: 1s;
}

.message-bubble:nth-child(3) {
    top: -20px;
    left: -20px;
    animation-delay: 2s;
}

@keyframes bubble {

    0%,
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }

    50% {
        transform: scale(1.2) translateY(-10px);
        opacity: 0.8;
    }
}

.signin-features {
    margin-top: 2rem;
}

.feature-highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-highlight:hover {
    background: rgba(255, 255, 255, 0.15);
    /* transform: translateX(4px); */
}

.feature-highlight i {
    color: var(--primary-orange);
    font-size: 1.1rem;
}

/* Dashboard Styles - WhatsApp Theme */
.dashboard-section {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 2rem;
    background: #f1fffb;
    /* <-- Your desired color */
    color: var(--whatsapp-text);
}

.welcome-header {
    margin-bottom: 2rem;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin: 0;
}

/* Stat Cards - WhatsApp Theme */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--whatsapp-border);
    background: var(--bg-primary);
    box-shadow: var(--shadow-whatsapp);
    border-radius: var(--border-radius);
}

.stat-card:hover {
    transform: (-4px);
    border-color: var(--whatsapp-green);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--gray-800);
}

.stat-content p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.9rem;
}

/* Create Project Section - WhatsApp Theme */
.create-project-section {
    background: var(--bg-primary);
    border: 1px solid var(--whatsapp-border);
    box-shadow: var(--shadow-whatsapp);
    border-radius: var(--border-radius);
}

.create-content h3 {
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.create-content p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.create-form .input-group {
    max-width: 500px;
}

.create-form .form-control {
    background: var(--bg-primary);
    border: 1px solid var(--whatsapp-border);
    color: var(--whatsapp-text);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
}

.create-form .form-control::placeholder {
    color: var(--whatsapp-text-secondary);
}

.create-form .form-control:focus {
    background: var(--bg-primary);
    border-color: var(--whatsapp-green);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
    color: var(--whatsapp-text);
}

.create-form .btn {
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    padding: 0.75rem 1.5rem;
}

.create-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.rocket-animation {
    font-size: 4rem;
    color: var(--primary-orange);
    animation: rocketFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes rocketFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.growth-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.growth-element {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: growthFloat 4s ease-in-out infinite;
}

.growth-element:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.growth-element:nth-child(2) {
    top: 60%;
    right: 30%;
    animation-delay: 1s;
}

.growth-element:nth-child(3) {
    bottom: 20%;
    left: 40%;
    animation-delay: 2s;
}

@keyframes growthFloat {

    0%,
    100% {
        transform: scale(1) translateY(0);
    }

    50% {
        transform: scale(1.5) translateY(-20px);
    }
}

/* Project Cards */
.projects-section .section-header h3 {
    color: var(--black);
    font-weight: 600;
    font-size: 1.75rem;
}

.project-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-name {
    color: var(--black);
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.project-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.detail-value {
    color: var(--gray-800);
    font-weight: 500;
    font-size: 0.9rem;
}

.project-actions .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Empty State */
.empty-state {
    padding: 3rem 2rem;
    text-align: center;
}

.empty-icon {
    font-size: 4rem;
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.empty-state h4 {
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 1rem;
    z-index: 1050;
    max-width: 400px;
}

.flash-alert {
    margin-bottom: 0.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    backdrop-filter: blur(10px);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background: rgba(34, 197, 94, 0.9);
    color: var(--white);
    border-left: 4px solid #22c55e;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.9);
    color: var(--white);
    border-left: 4px solid #ef4444;
}

.alert-info {
    background: rgba(59, 130, 246, 0.9);
    color: var(--white);
    border-left: 4px solid #3b82f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .auth-container {
        flex-direction: column;
    }

    .auth-brand {
        padding: 2rem;
        min-height: auto;
    }

    .brand-content h2 {
        font-size: 2rem;
    }

    .auth-form {
        padding: 2rem;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .create-form .input-group {
        flex-direction: column;
    }

    .create-form .form-control,
    .create-form .btn {
        border-radius: var(--border-radius-sm);
        width: 100%;
    }

    .create-visual {
        height: 150px;
        margin-top: 2rem;
    }

    .rocket-animation {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {


    .glass-card {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .brand-logos {
        gap: 1rem;
    }

    .brand-logo {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .flash-messages {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* Animations and Micro-interactions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Print Styles */
@media print {

    .navbar,
    .flash-messages,
    .floating-elements {
        display: none;
    }

    .hero-section,
    .auth-section,
    .dashboard-section {
        background: white;
        color: black;
    }

    .glass-card {
        background: white;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}


/* Responsive: Show only signup form below 992px */
@media (max-width: 991.98px) {
    .container-fluid {
        --bs-gutter-x: none;
    }

    .auth-brand {
        display: none !important;
    }

    .auth-form {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0px;
    }
}