/* ==========================================
   GOOGLE FONT
========================================== */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700;800&display=swap");

/* ==========================================
   ROOT COLORS
========================================== */

:root {
  --bg: #020617;
  --surface: #0f172b;
  --surface-light: #1e293b;

  --primary: #625fff;
  --primary-dark: #4f39f6;

  --yellow: #fcbb00;

  --white: #ffffff;

  --text: #e5e7eb;
  --text-muted: #94a3b8;

  --border: rgba(255, 255, 255, 0.08);

  --success: #10b981;
  --danger: #ef4444;

  --radius: 22px;

  --transition: 0.3s ease;
}

/* ==========================================
   RESET
========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;

  overflow: hidden;

  font-family: "DM Sans", sans-serif;

  background:
    radial-gradient(
      circle at top left,
      rgba(99, 102, 241, 0.15),
      transparent 30%
    ),
    linear-gradient(180deg, #020617, #08112a);
}

/* ==========================================
   CONTAINER
========================================== */

.container {
  width: 100%;
  height: 100vh;

  display: grid;

  grid-template-columns: 1.15fr 0.85fr;

  overflow: hidden;

  transition: 0.45s ease;
}

/* ==========================================
   LEFT PANEL
========================================== */

.left {
  background: #fff;

  padding: 55px 70px;

  overflow-y: auto;

  transition: 0.45s ease;
}

/* ==========================================
   RIGHT PANEL
========================================== */

.right {
  position: relative;

  display: flex;

  justify-content: center;

  align-items: center;

  overflow: hidden;

  background: linear-gradient(180deg, #3e3d9d, #1e293b);

  transition: 0.45s ease;
}

.right::before {
  content: "";

  position: absolute;

  width: 550px;
  height: 550px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15),
    transparent 70%
  );
}

/* ==========================================
   BRAND CONTENT
========================================== */

.right-content {
  position: relative;

  z-index: 2;

  text-align: center;

  color: white;
}

.logo {
  width: 180px;

  margin-bottom: 25px;
}

.right h2 {
  font-size: 42px;

  font-weight: 800;

  letter-spacing: 1px;
}

.right p {
  font-size: 24px;

  color: var(--yellow);

  margin-top: 8px;

  font-weight: 700;
}

.right small {
  display: block;

  margin-top: 25px;

  color: #dbeafe;

  font-size: 15px;

  line-height: 1.8;
}

/* ==========================================
   TITLES
========================================== */

.welcome {
  color: var(--primary);

  font-size: 14px;

  font-weight: 700;

  letter-spacing: 2px;

  margin-bottom: 12px;
}

.left h1 {
  font-size: 42px;

  font-weight: 800;

  color: #111827;
}

.left h1 span {
  color: var(--primary);
}

.subtitle {
  margin-top: 12px;

  color: #64748b;

  font-size: 15px;

  line-height: 1.7;

  margin-bottom: 35px;
}

/* ==========================================
   HIDDEN
========================================== */

.hidden {
  display: none !important;
}

/* ==========================================
   INPUT BOXES
========================================== */

.input-box {
  width: 100%;

  margin-bottom: 18px;

  position: relative;
}

.input-box input,
.input-box select {
  width: 100%;

  height: 56px;

  padding: 0 18px;

  border: 1px solid #dbe2ea;

  border-radius: 16px;

  outline: none;

  background: #ffffff;

  color: #111827;

  font-size: 15px;

  font-family: "DM Sans", sans-serif;

  transition: var(--transition);
}

.input-box input::placeholder {
  color: #94a3b8;
}

.input-box select {
  cursor: pointer;

  appearance: none;
}

/* ==========================================
   INPUT FOCUS
========================================== */

.input-box input:focus,
.input-box select:focus {
  border-color: var(--primary);

  box-shadow: 0 0 0 4px rgba(98, 95, 255, 0.12);
}

/* ==========================================
   ICON INPUTS
========================================== */

.icon-box input {
  padding-left: 52px;
}

.icon-box .material-icons:first-child {
  position: absolute;

  left: 16px;

  top: 50%;

  transform: translateY(-50%);

  color: #94a3b8;

  font-size: 22px;
}

/* ==========================================
   PASSWORD
========================================== */

.password-box {
  position: relative;
}

.password-box input {
  padding-right: 55px;
}

.eye {
  position: absolute;

  right: 16px;

  top: 50%;

  transform: translateY(-50%);

  cursor: pointer;

  color: #94a3b8;

  transition: 0.2s;
}

.eye:hover {
  color: var(--primary);
}

/* ==========================================
   NAME ROW
========================================== */

.name-row {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 16px;
}

/* ==========================================
   PASSWORD ROW
========================================== */

.password-row {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 16px;

  margin-top: 10px;
}

/* ==========================================
   BUTTONS
========================================== */

.login-btn {
  width: 100%;

  height: 56px;

  margin-top: 24px;

  border: none;

  border-radius: 16px;

  background: linear-gradient(135deg, var(--primary), var(--primary-dark));

  color: white;

  font-size: 15px;

  font-weight: 700;

  letter-spacing: 0.5px;

  cursor: pointer;

  transition: 0.25s;
}

.login-btn:hover {
  transform: translateY(-2px);

  box-shadow: 0 15px 30px rgba(98, 95, 255, 0.35);
}

.login-btn:active {
  transform: scale(0.98);
}

/* ==========================================
   BACK BUTTON
========================================== */

.back-btn {
  display: flex;

  align-items: center;

  gap: 8px;

  background: transparent;

  border: none;

  color: var(--primary);

  font-size: 15px;

  font-weight: 700;

  cursor: pointer;

  margin-bottom: 25px;
}

.back-btn:hover {
  color: var(--primary-dark);
}

/* ==========================================
   LINKS
========================================== */

.links {
  display: flex;

  justify-content: flex-end;

  margin-bottom: 20px;
}

.links a {
  color: var(--primary);

  text-decoration: none;

  font-size: 14px;

  font-weight: 600;
}

.links a:hover {
  text-decoration: underline;
}

/* ==========================================
   FOOTER
========================================== */

.footer {
  text-align: center;

  margin-top: 24px;

  color: #64748b;

  font-size: 14px;
}

.footer span {
  color: var(--primary);

  font-weight: 700;

  cursor: pointer;
}

.footer span:hover {
  text-decoration: underline;
}

/* ==========================================
   ACCOUNT SELECTION
========================================== */

.account-selection {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 18px;

  margin: 30px 0;
}

/* ==========================================
   ACCOUNT CARD
========================================== */

.account-card {
  background: #ffffff;

  border: 2px solid #e5e7eb;

  border-radius: 20px;

  padding: 25px 18px;

  text-align: center;

  cursor: pointer;

  transition: all 0.3s ease;

  user-select: none;
}

.account-card:hover {
  transform: translateY(-6px);

  border-color: var(--primary);

  box-shadow: 0 15px 35px rgba(98, 95, 255, 0.15);
}

.account-card.active {
  background: linear-gradient(
    135deg,
    rgba(98, 95, 255, 0.1),
    rgba(79, 57, 246, 0.08)
  );

  border-color: var(--primary);

  box-shadow: 0 20px 45px rgba(98, 95, 255, 0.25);
}

/* ==========================================
   ACCOUNT ICON
========================================== */

.account-icon {
  width: 70px;
  height: 70px;

  margin: auto;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: linear-gradient(135deg, var(--primary), var(--primary-dark));

  color: white;

  font-size: 34px !important;

  margin-bottom: 18px;
}

.account-card h3 {
  color: #111827;

  font-size: 18px;

  font-weight: 700;

  margin-bottom: 8px;
}

.account-card p {
  color: #64748b;

  font-size: 13px;

  line-height: 1.6;
}

/* ==========================================
   SIGNUP FORM
========================================== */

.signup-fields {
  margin-top: 25px;

  animation: fade 0.35s ease;
}

/* ==========================================
   PASSWORD RULES
========================================== */

.password-rules {
  margin-top: 18px;

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 12px;
}

.password-rules p {
  font-size: 13px;

  font-weight: 600;
}

/* ==========================================
   VALID
========================================== */

.valid {
  color: #10b981;
}

/* ==========================================
   INVALID
========================================== */

.invalid {
  color: #ef4444;
}

/* ==========================================
   PASSWORD MATCH
========================================== */

#passwordMatch {
  margin-top: 15px;

  margin-bottom: 5px;

  font-size: 14px;

  font-weight: 600;
}

/* ==========================================
   SELECT BOX
========================================== */

select {
  appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23625fff' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");

  background-repeat: no-repeat;

  background-position: right 18px center;

  background-size: 18px;
}

/* ==========================================
   ==========================================
   EMAIL OTP VERIFICATION
   ==========================================
========================================== */

/* ==========================================
   OTP EMAIL BOX
========================================== */

.otp-email-box {
  width: 100%;

  min-height: 54px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  margin-bottom: 25px;

  padding: 14px 18px;

  background: #f8fafc;

  border: 1px solid #e2e8f0;

  border-radius: 14px;

  color: #475569;

  font-size: 14px;

  font-weight: 600;

  word-break: break-word;
}

.otp-email-box .material-icons {
  color: var(--primary);

  font-size: 20px;
}

/* ==========================================
   OTP CONTAINER
========================================== */

.otp-container {
  display: flex;

  justify-content: center;

  align-items: center;

  gap: 12px;

  margin: 10px 0 18px;
}

/* ==========================================
   OTP INPUT
========================================== */

.otp-input {
  width: 52px;

  height: 58px;

  border: 1px solid #dbe2ea;

  border-radius: 14px;

  outline: none;

  background: #ffffff;

  color: #111827;

  text-align: center;

  font-family: "DM Sans", sans-serif;

  font-size: 22px;

  font-weight: 700;

  transition: var(--transition);
}

.otp-input:hover {
  border-color: rgba(98, 95, 255, 0.45);
}

.otp-input:focus {
  border-color: var(--primary);

  box-shadow: 0 0 0 4px rgba(98, 95, 255, 0.12);

  transform: translateY(-2px);
}

/* ==========================================
   OTP MESSAGE
========================================== */

.otp-message {
  min-height: 20px;

  margin: 5px 0 8px;

  text-align: center;

  font-size: 13px;

  font-weight: 600;

  color: var(--danger);
}

.otp-message.success {
  color: var(--success);
}

.otp-message.error {
  color: var(--danger);
}

/* ==========================================
   OTP RESEND
========================================== */

.otp-resend {
  display: flex;

  justify-content: center;

  align-items: center;

  flex-wrap: wrap;

  gap: 5px;

  margin-top: 20px;

  color: #64748b;

  font-size: 13px;

  text-align: center;
}

.otp-resend button {
  border: none;

  background: transparent;

  color: var(--primary);

  font-family: "DM Sans", sans-serif;

  font-size: 13px;

  font-weight: 700;

  cursor: pointer;
}

.otp-resend button:hover {
  text-decoration: underline;
}

.otp-resend button:disabled {
  color: #94a3b8;

  cursor: not-allowed;

  text-decoration: none;
}

/* ==========================================
   OTP COUNTDOWN
========================================== */

.otp-countdown {
  min-height: 20px;

  margin-top: 8px;

  text-align: center;

  color: #94a3b8;

  font-size: 12px;

  font-weight: 600;
}

/* ==========================================
   OTP BACK BUTTON
========================================== */

#otpBackLogin {
  display: inline-block;

  margin-top: 5px;
}

/* ==========================================
   OTP ANIMATION
========================================== */

#otpForm {
  animation: fade 0.35s ease;
}

/* ==========================================
   FADE ANIMATION
========================================== */

@keyframes fade {
  from {
    opacity: 0;

    transform: translateY(20px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* ==========================================
   CONTAINER ANIMATION
========================================== */

.left,
.right {
  transition: 0.45s ease;
}

/* ==========================================
   SCROLLBAR
========================================== */

.left::-webkit-scrollbar {
  width: 8px;
}

.left::-webkit-scrollbar-track {
  background: transparent;
}

.left::-webkit-scrollbar-thumb {
  background: rgba(98, 95, 255, 0.35);

  border-radius: 50px;
}

.left::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================
   ACCOUNT CARD CLICK
========================================== */

.account-card:active {
  transform: scale(0.97);
}

/* ==========================================
   INPUT HOVER
========================================== */

.input-box input:hover,
.input-box select:hover {
  border-color: rgba(98, 95, 255, 0.45);
}

/* ==========================================
   MOBILE (1024px)
========================================== */

@media (max-width: 1024px) {
  .container {
    grid-template-columns: 1fr;
  }

  .right {
    display: none;
  }

  .left {
    padding: 45px;
  }

  .account-selection {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================
   TABLET (768px)
========================================== */

@media (max-width: 768px) {
  .left {
    padding: 35px;
  }

  .left h1 {
    font-size: 34px;
  }

  .account-selection {
    grid-template-columns: 1fr;
  }

  .account-card {
    padding: 22px;
  }

  .name-row {
    grid-template-columns: 1fr;
  }

  .password-row {
    grid-template-columns: 1fr;
  }

  .password-rules {
    grid-template-columns: 1fr;
  }

  /* OTP */

  .otp-container {
    gap: 9px;
  }

  .otp-input {
    width: 48px;

    height: 54px;

    font-size: 20px;
  }
}

/* ==========================================
   MOBILE (576px)
========================================== */

@media (max-width: 576px) {
  .left {
    padding: 24px;
  }

  .left h1 {
    font-size: 30px;
  }

  .subtitle {
    font-size: 14px;
  }

  .logo {
    width: 140px;
  }

  .account-card {
    padding: 20px;
  }

  .account-icon {
    width: 60px;
    height: 60px;

    font-size: 28px !important;
  }

  .login-btn {
    height: 52px;
  }

  .input-box input,
  .input-box select {
    height: 52px;
  }

  /* OTP */

  .otp-container {
    gap: 7px;
  }

  .otp-input {
    width: 43px;

    height: 50px;

    border-radius: 12px;

    font-size: 19px;
  }

  .otp-email-box {
    font-size: 13px;

    padding: 12px;
  }
}

/* ==========================================
   SMALL PHONES (420px)
========================================== */

@media (max-width: 420px) {
  .left {
    padding: 18px;
  }

  .left h1 {
    font-size: 26px;
  }

  .welcome {
    font-size: 12px;
  }

  .subtitle {
    font-size: 13px;
  }

  .footer {
    font-size: 13px;
  }

  .links a {
    font-size: 13px;
  }

  /* OTP */

  .otp-container {
    gap: 5px;
  }

  .otp-input {
    width: 40px;

    height: 46px;

    border-radius: 10px;

    font-size: 17px;
  }

  .otp-email-box {
    font-size: 12px;

    gap: 6px;
  }

  .otp-resend {
    font-size: 12px;
  }

  .otp-resend button {
    font-size: 12px;
  }
}

/* ==========================================
   VERY SMALL PHONES (360px)
========================================== */

@media (max-width: 360px) {
  .left {
    padding: 15px;
  }

  .left h1 {
    font-size: 24px;
  }

  .otp-container {
    gap: 4px;
  }

  .otp-input {
    width: 37px;

    height: 43px;

    font-size: 16px;
  }
}

/* ==========================================
   LARGE DESKTOP (1440px+)
========================================== */

@media (min-width: 1440px) {
  .container {
    max-width: 1800px;

    margin: auto;
  }

  .left {
    padding: 70px 90px;
  }

  .left h1 {
    font-size: 48px;
  }

  .subtitle {
    font-size: 16px;
  }
}

/* ==========================================
   MACBOOK OPTIMIZATION
========================================== */

@media (min-width: 1200px) and (max-height: 900px) {
  .left {
    padding: 45px 60px;
  }

  .account-selection {
    margin: 20px 0;
  }

  .password-rules {
    gap: 8px;
  }
}

/* ==========================================
   ACCESSIBILITY
========================================== */

input:focus,
select:focus,
button:focus {
  outline: none;
}

button {
  font-family: "DM Sans", sans-serif;
}

input,
select {
  font-family: "DM Sans", sans-serif;
}

/* ==========================================
   END OF LOGIN.CSS
========================================== */
