:root {
  --bg: #f6f7fb;
  --card-bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --primary-soft: rgba(124, 58, 237, 0.12);
  --shadow: 0 28px 80px rgba(17, 24, 39, 0.14);
  --radius-lg: 20px;
  --radius-md: 14px;
  --transition: 0.2s ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.login-page {
  display: flex;
  min-height: 100vh;
  overflow: hidden;
    background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.24), transparent 18rem),
    radial-gradient(circle at 82% 72%, rgba(34, 211, 238, 0.28), transparent 20rem),
    linear-gradient(135deg, #7c3aed 0%, #4f46e5 48%, #0284c7 100%);
}

.login-hero,
.login-panel {
  flex: 1;
  min-height: 100vh;
}

.login-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  overflow: hidden;
  color: #ffffff;

}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000, transparent);
  pointer-events: none;
}

.brand,
.hero-content,
.hero-footer {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  color: #312e81;
  background: #ffffff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-content {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-content h2 {
  max-width: 460px;
  margin: 28px 0 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.hero-content p:not(.eyebrow) {
  max-width: 500px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.75;
}

.hero-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.hero-footer span {
  width: 42px;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.7);
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 48px 32px;
  
}

.login-card {
  width: min(100%, 460px);
  padding: 20px;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.card-heading {
  margin-bottom: 20px;
  text-align: center;
}

.card-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
 
}

.card-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-field {
  display: block;
  margin-bottom: 18px;
}

.form-field span {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.form-field input, .login-card input,
.login-card select {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size:14px;
  outline: 0;
  color: var(--text);
  background: #ffffff;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.login-card select {

}

.form-field input::placeholder {
  color: #9ca3af;
}

.form-field input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.login-card input.checkbox{ 
 width: auto;
 height:auto
}
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 24px;
  font-size: 14px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.remember-me input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.form-options a,
.signup-text a {
  color: var(--primary);
  font-weight: 700;
}

.login-btn {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: var(--radius-md);
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(124, 58, 237, 0.38);
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.divider span {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: #374151;
  cursor: pointer;
  background: #ffffff;
  font-weight: 700;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.social-btn:hover {
  border-color: #c7d2fe;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.social-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.social-icon.google {
  background: #ea4335;
}

.social-icon.facebook {
  background: #1877f2;
  font-family: Arial, sans-serif;
  font-size: 18px;
}

.signup-text {
  margin: 28px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 900px) {
  .login-page {
    display: block;
    min-height: 100vh;
  }

  .login-hero,
  .login-panel {
    min-height: auto;
  }

  .login-hero {
    padding: 32px 24px 56px;
    border-radius: 0 0 32px 32px;
  }

  .hero-content {
    margin-top: 64px;
  }

  .hero-content h1 {
    font-size: 48px;
  }

  .hero-content h2 {
    font-size: 26px;
  }

  .hero-content p:not(.eyebrow) {
    font-size: 15px;
  }

  .login-panel {
    padding: 32px 20px;
  }

  .login-card {
    padding: 28px 22px;
  }
}

@media (max-width: 520px) {
  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-name {
    font-size: 20px;
  }

  .form-options,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .form-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
