/* @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Poppins:wght@400;500&display=swap'); */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.ttf") format("truetype"),
       
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-Italic-VariableFont_wght.ttf") format("truetype"),
       
}

/* ================= ROOT VARIABLES ================= */
:root {
  /* ===== Fonts ===== */
 --font-primary: "Poppins", sans-serif;
 --font-heading: "Nunito", serif;

  /* ===== Backgrounds ===== */
  --body-bg: #ffffff;

  /* ===== Colors ===== */
  --color-dark: #222;
  --color-maroon: #632424;
  --color-green: #084422;
  --color-green-light: #084422;
  --color-link: #000000;

  /* ===== Shadows ===== */
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.1);

  /* ===== Borders & Radius ===== */
  --radius-card: 20px;
  --radius-btn: 25px;

  --primary-login-color : #084422;
  /* ===== Animation ===== */
  --anim-duration: 1s;
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= BASE ================= */
body {
  background-color: var(--body-bg);
  font-family: var(--font-primary);
}

/* Signin brand text  */
.signin-brand-text {
  text-align: center;
  font-family: var(--font-heading); /* Nunito */
  font-size: 1.6rem;
  font-weight: 700;
  color: #084422;
  margin-bottom: 6px;
}

h3{
  font-family:'Nunito';}
/* ================= CARD ================= */
.card {
  max-width: 950px;
  width: 90%;
  border-radius: var(--radius-card);
  overflow: hidden;
  animation: fadeIn var(--anim-duration) forwards;
  box-shadow: var(--shadow-card);
}

/* ================= LOGIN BOX ================= */
.login-box {
  padding: 40px;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;

  transform: translateX(-100%);
  animation: slideInLeft var(--anim-duration) ease forwards 0.3s;
}
.login-box {
  position: relative;
}

/* ================= FORM ================= */
.form-control:focus {
  box-shadow: none;
  border-color: transparent;
  outline: none;
  background-color: transparent;
}

.input-group-custom {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--color-green);
  margin-bottom: 25px;
  padding: 5px 0;
  transition: all 0.3s ease;
  position: relative;
}

.input-group-custom i {
  color: #084422;
  font-size: 1.2rem;
  margin-right: 10px;
  transition: color 0.3s ease;
}

.input-group-custom input {
  border: none;
  flex: 1;
  background: transparent;
  padding: 6px 0;
  font-size: 1rem;
  color: var(--color-dark);
}

.input-group-custom::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #084422;
  transition: width 0.4s ease;
}

.input-group-custom:focus-within::after {
  width: 100%;
}

/* ================= IMAGE SECTION ================= */
.image-section {
  background-size: 90%;          /* make image BIG */
  background-repeat: no-repeat;
  background-position: center;

  padding: 0;                   /* remove shrink */
  display: flex;
  align-items: center;
  justify-content: center;

  image-rendering: crisp-edges; /* sharper vectors */

  clip-path: path("M0,0 C100,200 0,400 0,600 L600,600 L600,0 Z");

  transform: translateX(100%);
  animation: slideInRight var(--anim-duration) ease forwards 0.3s;
}


/* ================= MESSAGES ================= */
.error-msg,
.successMsg {
  display: none;
}

/* ================= LINKS ================= */
a {
  text-decoration: none;
  color: var(--color-link);
}

a:hover {
  text-decoration: underline;
}

/* ================= BUTTON ================= */
.btn {
  border-radius: var(--radius-btn);
}

.login-btn{
  background-color: var(--primary-login-color);
  color: white;
}
.login-btn:hover {
  background-color: #244840;
  color: white;
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-btn .spinner-border {
  margin-left: 6px;
}

/* ================= ANIMATIONS ================= */
@keyframes slideInLeft {
  to {
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  to {
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* ================= STEP TRANSITIONS ================= */

.step {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  position: absolute;
  width: 100%;
  pointer-events: none;
}

.step.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}



/* ================= FIXED AUTH CARD HEIGHT ================= */

.card {
  height: 500px;              /* adjust if needed */
}

/* make row fill card */
.card .row {
  height: 100%;
}

/* left + right columns fill */
.login-box,
.image-section {
  height: 100%;
}

/* ===============================
   TOAST BASE
================================ */

#toastContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  min-width: 260px;
  max-width: 340px;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);

  opacity: 0;
  transform: translateX(100%);
  transition: all 0.4s ease;
}

/* Show animation */
.toast.show {
  opacity: 1;
  transform: translateX(0);
}

/* Icon circle */
.toast .icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
}

.toast .message {
  font-size: 14px;
  font-weight: 500;
}

/* ===============================
   SUCCESS
================================ */

.toast.success {
  background: #eafaf1;
  color: #1e7e34;
  border-left: 4px solid #198754;
}

.toast.success .icon {
  background: #198754;
}

/* ===============================
   ERROR
================================ */

.toast.error {
  background: #fdecea;
  color: #b02a37;
  border-left: 4px solid #dc3545;
}

.toast.error .icon {
  background: #dc3545;
}

/* ===============================
   WARNING
================================ */

.toast.warning {
  background: #fff4e5;
  color: #b26a00;
  border-left: 4px solid #ffc107;
}

.toast.warning .icon {
  background: #ffc107;
  color: #333;
}

