/* ============================================================
   Root Variables — Branding & Colors
============================================================ */
:root {
  --brand-red: #E30613;
  --brand-blue: #0066CC;
  --brand-green: #00A859;
  --text-dark: #222;
  --text-light: #555;
  --bg-light: #fff;
  --brand-bg-light: #F9F9F9;
  --brand-text-dark: #1A1A1A;
  --brand-white: #fff;
  --border-radius: 8px;
  --transition: 0.3s ease;
  --shadow-light: rgba(0, 0, 0, 0.07);
  --shadow-strong: rgba(0, 0, 0, 0.15);
}


/* ============================================================
   Global Setup
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ============================================================
   Background Animated SVG
============================================================ */
.background-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);
  transition: opacity 0.4s ease-in-out;
}

.background-shapes svg {
  width: 100%;
  height: 100%;
  display: block;
  mix-blend-mode: overlay;
  filter: blur(1px);
}

/* ============================================================
   Layout Wrapper
============================================================ */
.main-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.row.no-gutters {
  width: 100%;
  height: 100%;
  margin: 0;
}

/* ============================================================
   Left Panel (Desktop View)
============================================================ */
.left-panel {
  position: relative;
  padding: 50px 60px;
  animation: fadeInLeft 1s ease-out forwards;
  z-index: 2;
}

.left-content {
  color: #fff;
}

.left-content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 30px;
}

.test-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.test-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 20px;
  flex: 1 1 45%;
  color: #fff;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.test-item:hover {
  background: var(--brand-green);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.icon-circle {
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
}

.brand-red    { background-color: var(--brand-red); }
.brand-blue   { background-color: var(--brand-blue); }
.brand-green  { background-color: var(--brand-green); }
.brand-yellow { background-color: #F2C94C; }
.brand-purple { background-color: #8E44AD; }
.brand-orange { background-color: #E67E22; }

/* ============================================================
   LOGIN & SIGNUP CONTAINER
============================================================ */
.login-container,
.signup-container {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 10;
  text-align: center;
  animation: fadeInRight 1s ease-out forwards;
}

.login-logo,
.signup-logo {
  width: 180px;
  margin-bottom: 20px;
}

/* ============================================================
   TABS (PATIENT / ASSOCIATE)
============================================================ */
.login-tabs,
.signup-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.login-tab,
.signup-tab {
  flex: 1;
  padding: 12px 0;
  cursor: pointer;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.login-tab {
  color: var(--text-dark);
  background-color: rgba(0, 104, 204, 0.08);
}

.signup-tab {
  color: var(--text-dark);
  background-color: rgba(227, 6, 19, 0.07);
}

.login-tab:hover {
  color: var(--brand-blue);
  background-color: rgba(0, 104, 204, 0.1);
}

.signup-tab:hover {
  color: var(--brand-red);
  background-color: rgba(227, 6, 19, 0.1);
}

.login-tab.active,
.signup-tab.active {
  background-color: var(--brand-green);
  color: #fff;
}

/* ============================================================
   FORMS
============================================================ */
.login-form,
.signup-form {
  display: none;
  flex-direction: column;
  gap: 15px;
}

.login-form.active,
.signup-form.active {
  display: flex;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  padding: 8px 12px;
  transition: border-color 0.3s ease;
}

.input-group:focus-within {
  border-color: var(--brand-blue);
}

.input-group i {
  margin-right: 10px;
  color: var(--brand-red);
  font-size: 1.1rem;
}

.input-group input {
  border: none;
  flex: 1;
  font-size: 15px;
  outline: none;
  color: var(--text-dark);
  background: transparent;
}

.toggle-password {
  position: absolute;
  right: 12px;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: var(--brand-blue);
}

/* ============================================================
   BUTTONS
============================================================ */
.login-form button,
.signup-form button {
  padding: 12px;
  background: var(--brand-green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-form button:hover,
.signup-form button:hover {
  background: #008a4a;
  box-shadow: 0 6px 16px rgba(0, 168, 89, 0.4);
}

/* ============================================================
   CHECKBOX + TERMS
============================================================ */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-dark);
  gap: 10px;
  text-align: left;
}

.checkbox-group input {
  margin-top: 4px;
}

.checkbox-group a {
  color: var(--brand-red);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.checkbox-group a:hover {
  color: #b20410;
}

/* ============================================================
   FOOTER LINKS
============================================================ */
.login-footer, .signup-footer {
  margin-top: 20px;
  font-size: 0.95rem;
}

.login-footer, .signup-footer a {
  color: var(--brand-red);
  font-weight: 600;
  text-decoration: none;
}

.login-footer, .signup-footer a:hover {
  text-decoration: underline;
}

/* ================================
   OTP Modal
================================ */
.modal-content {
  border-radius: 10px;
  overflow: hidden;
}

.modal-header {
  background: var(--brand-blue) !important;
  color: #fff !important;
}

/* ============================================================
   Floating Circles Animation
============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
.float-circle {
  animation: float 6s ease-in-out infinite;
}

/* ============================================================
   Animations
============================================================ */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
  .left-panel {
    display: none;
  }

  .login-container,
  .signup-container {
    padding: 20px;
  }

  .background-shapes {
    height: 120vh;
    opacity: 0.6;
  }
}

/* Modal Content */
.otp-modal-content {
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
  border: 1px solid #ddd;
}

/* Modal Header */
.otp-modal-header {
  background-color: var(--brand-blue);
  color: var(--brand-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.otp-modal-close {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--brand-white);
  background: none;
  border: none;
  cursor: pointer;
}

/* Modal Body */
.otp-modal-body {
  padding: 24px 20px;
  text-align: center;
  background-color: var(--brand-bg-light);
}

.otp-modal-text {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: var(--brand-text-dark);
}

/* OTP Inputs */
.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.otp-digit {
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  text-align: center;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: var(--brand-white);
  color: var(--brand-text-dark);
  transition: all 0.2s ease;
}

.otp-digit:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 6px rgba(0,102,204,0.3);
}

/* Buttons */
.otp-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.otp-btn {
  flex: 1;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.otp-btn-primary {
  background-color: var(--brand-blue);
  color: var(--brand-white);
}

.otp-btn-primary:hover {
  background-color: #0052a3;
}

.otp-btn-secondary {
  background-color: var(--brand-white);
  border: 1px solid var(--brand-blue);
  color: var(--brand-blue);
}

.otp-btn-secondary:hover {
  background-color: var(--brand-blue);
  color: var(--brand-white);
}

/* Note Text */
.otp-note {
  font-size: 0.8rem;
  color: #666;
  display: block;
  margin-top: 8px;
}

