 /* --- GLOBAL STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --primary-purple: #5a4bff;
    --dark-navy: #0a2540;
    --text-gray: #64748b;
    --input-bg: #f8fafc;
    --border-color: #e2e8f0;
}

body {
    background-color: #fff;
    color: var(--dark-navy);
    overflow-x: hidden;
}

/* --- LAYOUT WRAPPER --- */
.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* --- LEFT SIDE: ASIDE IMAGE --- */
.login-aside {
    flex: 1;
    background: linear-gradient(rgba(10, 37, 64, 0.5), rgba(90, 75, 255, 0.2)), 
               url('https://images.unsplash.com/photo-1522771739844-6a9f6d5f14af?q=80&w=1600&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: white;
}

.aside-content {
    max-width: 500px;
}
 .logo img {
      height: 40px; /* Adjust based on your logo size */
      display: block;
    }
.brand-logo {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 40px;
}

.brand-logo span {
    color: #a89fff;
}

.aside-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.aside-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* --- RIGHT SIDE: FORM --- */
.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #fff;
}

.login-form-container {
    max-width: 460px;
    width: 100%;
}

.mobile-logo {
    display: none; /* Only visible on mobile */
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--dark-navy);
}

.mobile-logo span {
    color: var(--primary-purple);
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-gray);
    margin-bottom: 32px;
}

/* --- SOCIAL BUTTONS --- */
.social-login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.social-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.social-btn img {
    width: 20px;
}

/* --- DIVIDER --- */
.divider {
    text-align: center;
    position: relative;
    margin-bottom: 24px;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    position: relative;
    background: white;
    padding: 0 15px;
    font-size: 13px;
    color: var(--text-gray);
}

/* --- FORM GROUPS --- */
.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-navy);
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 14px 14px 48px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--input-bg);
    outline: none;
    font-size: 15px;
    transition: 0.3s;
}

.input-wrapper input:focus {
    border-color: var(--primary-purple);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(90, 75, 255, 0.1);
}

/* --- OPTIONS & BUTTON --- */
.form-options {
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-gray);
    cursor: pointer;
}

.remember-me input {
    margin-top: 3px;
    accent-color: var(--primary-purple);
}

.inline-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
}

.login-submit-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.login-submit-btn:hover {
    background-color: #4335e6;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(90, 75, 255, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-gray);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;

}

 
/* =====================================================
   MOBILE OPTIMIZATION
   ===================================================== */
@media (max-width: 768px) {

  .login-wrapper {
    flex-direction: column;
  }

  /* Hide aside */
  .login-aside {
    display: none;
  }

  .login-main {
    padding: 20px;
  }

  .login-form-container {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .mobile-logo {
    display: block;
  }

  .form-header h2 {
    font-size: 22px;
  }

  .form-header p {
    font-size: 13px;
  }
 
  .login-submit-btn {
    font-size: 14px;
    padding: 13px;
  }
}@media (max-width: 768px) {

  .form-row-split {
    flex-direction: column;
    gap: 12px;   /* <-- this is the key fix */
  }

}/* =====================================================
   MOBILE — BG IMAGE OUTSIDE FORM (INSTAGRAM STYLE)
   ===================================================== */
@media (max-width: 768px) {

  /* Keep background image visible */
  body {
    background:
      linear-gradient(rgba(10, 37, 64, 0.55), rgba(10, 37, 64, 0.55)),
      url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTiVs42hUwvoxqFzJc1sEsTZDFSFRuci1rZC7KCMVyWGs-lW0Xws7F-_5dzqq4tv-BmusU&usqp=CAU');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }

  .login-wrapper {
    min-height: 100vh;
  }

  /* Center the card */
  .login-main {
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* White card */
  .login-form-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 22px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 420px;
  }

  /* Mobile logo inside card */
  .mobile-logo {
    display: block;
    text-align: center;
    margin-bottom: 18px;
  }

  /* Tighter header */
  .form-header {
    margin-bottom: 22px;
  }

  /* First & last name spacing */
  .form-row-split {
    flex-direction: column;
    gap: 12px;
  }
}
/* =====================================================
   FIX — SHOW BG IMAGE ON MOBILE
   ===================================================== */
@media (max-width: 768px) {

  /* Remove white overlay blocking the image */
  .login-main {
    background: transparent !important;
  }

  /* Ensure wrapper allows background to show */
  .login-wrapper {
    background: transparent;
  }
}
/* General Logo Styling */
.login-main .logo {
    margin-bottom: 2rem; /* Adds gap between logo and "Create Account" text */
}

.login-main .logo img {
    height: 45px; /* Adjust height as needed */
    display: block;
}

/* Mobile Specific Adjustments */
@media (max-width: 768px) {
    .login-main .logo {
        display: flex;
        justify-content: center; /* Centers the logo horizontally */
        align-items: center;
        margin-bottom: 2.5rem; /* Increased gap for mobile readability */
    }

    .form-header {
        text-align: center; /* Centers the "Create Account" text to match centered logo */
    }
}