/* =================================
   1. BRAND COLORS (Matched to Logo)
================================= */
:root {
  --navy-bg: #000033;      /* Deep Navy from logo background */
  --pro-green: #32cd32;    /* Lime Green from "PRO" */
  --sky-blue: #7fdff0;     /* Light Sky Blue accents */
  --white: #ffffff;
  --bg-light: #f4f7f9;
  --text-dark: #333333;
  --transition: all 0.3s ease;
}

/* =================================
   2. RESET & BASE STYLES
================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =================================
   3. NAVBAR
================================= */
#navbar {
  background-color: var(--navy-bg);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--pro-green);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  color: var(--white);
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo span {
  color: var(--pro-green);
  margin-left: 5px;
}

.nav-right li {
  list-style: none;
}

.nav-right a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.nav-right a:hover {
  color: var(--pro-green);
}

/* =================================
   4. SPLIT SCREEN WRAPPER
================================= */
.split-screen-wrapper {
  display: flex;
  flex: 1; /* Pushes footer down */
  min-height: 85vh;
}

.auth-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

/* Login Side (Left/Dark) */
.login-side {
  background: linear-gradient(135deg, var(--navy-bg) 0%, #000055 100%);
  color: var(--white);
}

/* Signup Side (Right/Light) */
.signup-side {
  background-color: var(--white);
  color: var(--navy-bg);
}

.form-box {
  width: 100%;
  max-width: 550px;
}

.form-box h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: inherit;
}

.form-box p {
  margin-bottom: 30px;
  opacity: 0.8;
}

/* =================================
   5. FORM ELEMENTS & GRID
================================= */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns on desktop */
  gap: 15px;
  margin-bottom: 15px;
}

.input-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-group input, 
.input-group select {
  padding: 12px 15px;
  border-radius: 8px;
  border: 2px solid #e1e5eb;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

/* Specific styling for the Dark Login Side */
.login-side .input-group input {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--sky-blue);
  color: white;
}

.login-side .input-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Focus states */
.signup-side input:focus { border-color: var(--pro-green); }
.login-side input:focus { border-color: var(--white); background: rgba(255, 255, 255, 0.15); }

/* =================================
   6. TERMS & CONDITIONS (THE DROPDOWN)
================================= */
.tc-container {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #ddd;
  margin: 20px 0;
}

details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy-bg);
  outline: none;
  list-style: none;
}

details summary::-webkit-details-marker { display: none; }

.tc-content {
  font-size: 0.8rem;
  max-height: 150px;
  overflow-y: auto;
  margin-top: 12px;
  padding: 10px;
  background: white;
  border-radius: 5px;
  border: 1px solid #eee;
  line-height: 1.5;
  color: #444;
}

.tc-content h4 {
  margin-top: 10px;
  color: var(--navy-bg);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  margin-top: 15px;
  cursor: pointer;
}

/* =================================
   7. BUTTONS & LINKS
================================= */
.auth-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}

.login-btn {
  background-color: var(--pro-green);
  color: var(--navy-bg);
}

.signup-btn {
  background-color: var(--navy-bg);
  color: var(--white);
}

.auth-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.forgot-link {
  text-align: right;
  margin-top: -10px;
  margin-bottom: 20px;
}

.forgot-link a {
  color: var(--sky-blue);
  font-size: 0.9rem;
  text-decoration: none;
}

/* =================================
   8. FOOTER
================================= */
.footer {
  background-color: var(--navy-bg);
  color: var(--white);
  padding: 40px 5% 20px;
  border-top: 2px solid var(--pro-green);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-box h4 {
  color: var(--pro-green);
  margin-bottom: 15px;
}

.footer-box a {
  color: var(--white);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  opacity: 0.8;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}

/* =================================
   9. MOBILE RESPONSIVENESS
================================= */
@media (max-width: 900px) {
  .split-screen-wrapper {
    flex-direction: column; /* Stacks Login and Signup */
  }

  .auth-section {
    padding: 60px 20px;
  }

  /* Make form grid a single column on phones */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-box h2 {
    font-size: 1.8rem;
  }

  /* Ensure footer boxes stack nicely */
  .footer-inner {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
}