    :root {
  /* Light Mode (Default) */
  --bg-color: #f4f7f6;
  --text-color: #333333;
}

body.dark-mode {
  /* Night Mode */
  --bg-color: #1f232a;
  --text-color: #ffffff;
}   
   
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color .3s ease, color .3s ease;
}


.landing-page { padding: 20px; max-width: 800px; margin: 0 auto; }

.auth-nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.brand { font-weight: 800;   color: var(--text-color); }

.hero { 
    text-align: center; 
    padding: 80px 20px; /* Increased top padding for better flow */
}

.badge {     background-color: var(--bg-color); background: #fcefe8; color: #d35400; padding: 6px 12px; border-radius: 20px; display: inline-block; font-size: 0.9rem; margin-bottom: 20px; }

h1 { font-size: 2.5rem; color: var(--text-color); margin-bottom: 20px; }

.cta-group { display: flex; flex-direction: column; gap: 15px; margin: 40px 0; }
.btn-primary{
    background:#2C3E50;
    color:#fff;
    padding:12px;
    border:none;
    border-radius:10px;
    text-decoration:none;
    font-weight:bold;
    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
}


/* Update your CSS for consistency */
.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border: 2px solid #2C3E50; /* Solid blue border to match the primary button */
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.trust-signals { display: flex; justify-content: center; gap: 20px; color: var(--text-color); font-size: 0.9rem; }

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 20px;
}

.service-card {
        background-color: var(--bg-color);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.service-card h3 {   color: var(--text-color); margin-bottom: 10px; }

/* Logo and Brand alignment */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text-color); }
.nav-logo { width: 50px; height: 50px; }

/* Register button with blue border */
.btn-register-border {
    padding: 8px 20px;
    border: 2px solid #2C3E50; /* Blue border */    
    background: #2C3E50;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}
.btn-register-border:hover {
    color: white;
    border-color: #3a4f63;
}

/* Ensure the login button specifically has no underline */
.btn-login {
    text-decoration: none;
    color: var(--text-color); font-weight: 600;
}


/* Icons inside buttons */
.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between icon and text */
}

/* =====================================================
   SIGNUP AND LOGIN PAGE
===================================================== */
/* Container for centered authentication card */
.auth-container {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card {
       background-color: var(--bg-color);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {  
    color: var(--text-color); margin-bottom: 10px; }
.auth-card p {    
    color: var(--text-color);margin-bottom: 30px; }

.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #334155; }
.input-group input { 
    width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; 
}

.auth-footer { text-align: center; margin-top: 20px; font-size: 0.9rem; }
.auth-footer a { color: var(--text-color); font-weight: bold; text-decoration: none; }

/* Layout for side-by-side name fields */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Ensure consistent input styling */
.input-group input {
    width: 100%;
    padding: 12px;
        background-color: var(--bg-color);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box; /* Ensures padding doesn't break layout */
}

/* Update this specific grid style */
.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px; /* This creates the breathing room between them */
    margin-bottom: 5px;
}

/* Ensure the inputs themselves aren't cramped */
.input-group {
    margin-bottom: 15px; /* Adds space between rows */
}

/* Container for the input and the eye icon */
/* The wrapper ensures the eye icon stays inside the input border */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Add padding-right to keep the eye icon from overlapping with your text */
.password-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 12px; /* Top, Right, Bottom, Left */
    box-sizing: border-box; /* Crucial for keeping width correct */
}

/* Position the icon absolutely to the right, inside the wrapper */
.toggle-password {
    position: absolute;
    right: 12px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 10px 18px;
    background-color: var(--bg-color);
    color: var(--text-color);            /* Readable Gray-Blue text */
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.back-link:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
    border-color: #cbd5e1;
}

.back-link i {
    width: 18px;
    height: 18px;
}

/* Amazing Loading Logo Sign 
Amazing Centered Logo Visibility*/
     
#auth-loader{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-color: var(--bg-color);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    z-index:999999;
}

#auth-loader img{
    width:100px;
    height:90px;
    border-radius:50%;
    margin-bottom:15px;
    animation:pulse 1.2s infinite;
}

#auth-loader p{
    font-size:16px;
    color:#555;
    font-weight:500;
}

@keyframes pulse{
    0%{
        transform:scale(1);
    }
    50%{
        transform:scale(1.08);
    }
    100%{
        transform:scale(1);
    }
}

/* ===========================
   LOGIN BUTTON SPINNER
=========================== */

.btn-spinner{
    width:18px;
    height:18px;
    border:2px solid rgba(255,255,255,.35);
    border-top:2px solid #fff;
    border-radius:50%;
    display:inline-block;
    animation:spin .8s linear infinite;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

.btn-primary:disabled{
    opacity:.85;
    cursor:not-allowed;
}
























































/* ===========================
   Mobile (phones)
=========================== */
@media (max-width: 768px) {

.landing-page { padding: 10px; margin: 0 auto; }

.auth-nav { display: flex; justify-content: space-between; align-items: center; padding: 25px 0; }
.brand { font-weight: 500; color: var(--text-color); }

/* Register button with blue border */
.btn-register-border {
    padding: 5px 8px;
    border: 2px solid #2C3E50; /* Blue border */
        background: #2C3E50;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}
.btn-register-border:hover {
    color: white;
    border-color: #3a4f63;
}

/* Ensure the login button specifically has no underline */
.btn-login {
    text-decoration: none;
    color: #4a5d70; /* Added color for better visibility */
    font-weight: 600;
}

.badge { background: #fcefe8; color: #d35400; padding: 4px 8px; border-radius: 15px; display: inline-block; font-size: 0.9rem; margin-bottom: 15px; }

h1 { font-size: 1.7rem; color: #0f172a; margin-bottom: 16px; }

   .hero p{
        font-size:0.8rem;
        line-height:1.6;
    }

.cta-group { display: flex; flex-direction: column; gap: 15px; margin: 30px 0; }
.btn-primary { background: #2C3E50; color: white; padding: 12px; border-radius: 10px; text-decoration: none; font-weight: bold; }
/* Update your CSS for consistency */
.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    border: 2px solid #2C3E50; /* Solid blue border to match the primary button */
    border-radius: 10px;
    text-decoration: none;
    color: #2C3E50;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #2C3E50;
    color: white;
}

/* Icons inside buttons */
.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Space between icon and text */
}

.trust-signals { display: flex; justify-content: center; gap: 8px; color: #64748b; font-size: 0.8rem; }

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    padding: 20px 10px;
}

.service-card {
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.service-card h3 {     
    color: var(--text-color); margin-bottom: 10px; }

/* Logo and Brand alignment */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800;    color: var(--text-color); }
.nav-logo { width: 50px; height: 50px; }

/* =====================================================
   SIGNUP AND LOGIN PAGE
===================================================== */
/* Container for centered authentication card */
.auth-container {
    display: flex;
    justify-content: center;
    padding: 25px 15px;
}

.auth-card{
    width:100%;
    max-width:420px;
    margin:20px auto;
    padding:28px 22px;
    background:var(--card-bg);
    border-radius:18px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.auth-card h2 {    
    color: var(--text-color); margin-bottom: 10px; }
.auth-card p {   
    color: var(--text-color);; margin-bottom: 30px; }

.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600;
    color: var(--text-color);}
.input-group input { 
    width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; 
}

/* Layout for side-by-side name fields */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Ensure consistent input styling */
.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box; /* Ensures padding doesn't break layout */
}

/* Update this specific grid style */
.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px; /* This creates the breathing room between them */
    margin-bottom: 5px;
}

/* Ensure the inputs themselves aren't cramped */
.input-group {
    margin-bottom: 15px; /* Adds space between rows */
}

/* Container for the input and the eye icon */
/* The wrapper ensures the eye icon stays inside the input border */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Add padding-right to keep the eye icon from overlapping with your text */
.password-wrapper input {
    width: 100%;
    padding: 12px 20px 12px 12px; /* Top, Right, Bottom, Left */
    box-sizing: border-box; /* Crucial for keeping width correct */
}

/* Position the icon absolutely to the right, inside the wrapper */
.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 10px 18px;
    background-color: var(--bg-color);
    color: var(--text-color);           /* Readable Gray-Blue text */
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.back-link:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
    border-color: #cbd5e1;
}

.back-link i {
    width: 18px;
    height: 18px;
}

/* Amazing Loading Logo Sign 
Amazing Centered Logo Visibility*/
     
#auth-loader{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
        background-color: var(--bg-color);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    z-index:999999;
}

#auth-loader img{
    width:100px;
    height:90px;
    border-radius:50%;
    margin-bottom:15px;
    animation:pulse 1.2s infinite;
}

#auth-loader p{
    font-size:16px;
    color:#555;
    font-weight:500;
}

@keyframes pulse{
    0%{
        transform:scale(1);
    }
    50%{
        transform:scale(1.08);
    }
    100%{
        transform:scale(1);
    }
}




/* =====================================================
   SIGNUP AND LOGIN PAGE
===================================================== */
/* Container for centered authentication card */
.auth-container {
    display: flex;
    justify-content: center;
    padding: 30px 10px;
}

.auth-card {
       background-color: var(--bg-color);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    width: 75%;
    max-width: 200px;
}
/* Layout for side-by-side name fields */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
    margin-top: 30px;
    padding: 9px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
            background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.back-link:hover {
        background-color: var(--bg-color);
    color: var(--text-color);
    border-color: #cbd5e1;
}

}

