/* =========================
   VARIABLES
========================= */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');

:root {
  --primary-color: #4a69bd;
  --primary-dark-color: #1e3799;
  --secondary-color: #6a89cc;
  --background-color: #f1f2f6;
  --form-background-color: #ffffff;
  --text-color: #2c3e50;
  --subtle-text-color: #7f8c8d;
  --border-color: #bdc3c7;
  --error-color: #e74c3c;
  --success-color: #2ecc71;
  --white-color: #ffffff;
}

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

html,
body {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

body {
  font-family: 'Opensans', sans-serif;
  background: var(--background-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--text-color);
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   TOAST
========================= */
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #333;
  color: var(--white-color);
  padding: 10px 14px;
  border-radius: 6px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  pointer-events: auto;
}

#logoutToast i {
  flex-shrink: 0;
}

#logoutToast p {
  flex-grow: 1;
  margin: 0;
}

#toastClose {
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  pointer-events: auto;
}

.toast.show {
  animation: slideInRight 300ms ease forwards;
}

.toast.hide {
  animation: slideOutRight 300ms ease forwards;
}

.toast.hidden {
  display: none !important;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* =========================
   ANIMATIONS
========================= */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg) translateY(0);
  }
  50% {
    transform: rotate(180deg) translateY(-15px);
  }
  100% {
    transform: rotate(360deg) translateY(0);
  }
}

/* =========================
   WRAPPER & CARD
========================= */
.login-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.login-card {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100vh;
  background-color: var(--form-background-color);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease-in-out;
}

/* =========================
   VISUAL SECTION (LEFT)
========================= */
.login-visual {
  background-color: var(--primary-color);
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--white-color);
  transition: all 0.3s ease-in-out;
}

.login-visual .logo {
  width: 250px;
  margin: 0 auto;
  display: block;
}

/* =========================
   FORM SECTION (RIGHT)
========================= */
.login-form-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  min-height: 100vh;
  transition: all 0.3s ease-in-out;
}

.login-form-content {
  width: 100%;
  max-width: 400px;
}

.login-form-container .subtext {
  color: var(--subtle-text-color);
  font-size: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* =========================
   FORM FIELDS
========================= */
form .form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.input-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  background-color: var(--form-background-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-icon input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 105, 189, 0.25);
}

.input-inside-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  pointer-events: none;
  font-size: 1.1rem;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--primary-color);
}

/* =========================
   MESSAGES
========================= */
.message {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-direction: column;
}

.message p {
  margin-top: -10px;
  font-size: 0.95rem;
  color: var(--error-color);
}

.message.success p {
  color: var(--success-color);
}

.hidden {
  display: none;
}

/* =========================
   BUTTONS
========================= */
.login-form-container .login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  margin: 2rem auto 0 auto;
  min-height: 45px;
}

.login-form-container .login-button:hover {
  background-color: var(--primary-dark-color);
  transform: translateY(-2px);
}

.login-button .lucide {
  font-size: 1.1rem;
}

/* =========================
   FOOTER
========================= */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 2rem;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--primary-dark-color);
}

.footer .brand{
  font-weight: bold;
  color: var(--primary-color);
}


.footer .tagline{
  font-weight: 1px;
  color: var(--primary-color);

}
.footer .copyright{
  font-weight: 3px;
  color: #5b4fc0;

}


.footer .links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer .links a {
  
  text-decoration: none;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}





.footer .links a[title="Website"] svg {
  stroke: #3b29de; /* Web sky blue */
}

.footer .links a[title="Contact Us"] svg {
  stroke: #D44638; /* Gmail red */
}

.footer .links a[title="Instagram"] svg {
  stroke: #E1306C; /* Instagram pink */
}



.footer .links a:hover {
  transform: scale(1.2);
}

/* =========================
   RESPONSIVE DESIGN
========================= */

/* Hide left animation on <= 1000px */
@media (max-width: 700px) {
  .login-visual {
    display: none;
  }

  .login-card {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    width: 100%;
    background: var(--form-background-color);
  }

  .login-form-container {
    width: 100%;
    padding: 2rem 1rem;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
  }

  .login-form-content {
    width: 100%;
    max-width: 400px;
  }
}

/* Tablet view */
@media (max-width: 768px) {
  .login-form-container {
    padding: 1.5rem;
  }

  .login-form-container h2 {
    font-size: 1.6rem;
    text-align: center;
  }

  .login-form-container .subtext {
    font-size: 0.95rem;
    text-align: center;
  }

  .login-form-content form input,
  .login-button {
    width: 100%;
  }
}

/* Mobile view */
@media (max-width: 640px) {
  .login-card {
    height: auto;
    min-height: 100vh;
    padding: 0;
    background: var(--form-background-color);
  }

  .login-form-container {
    padding: 1.5rem;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .login-form-content {
    width: 100%;
    max-width: 95%;
    background: var(--form-background-color);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 1.5rem;
  }

  .login-form-container h2 {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .login-form-container .subtext {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1rem;
  }

  form .form-group {
    margin-bottom: 1rem;
  }

  .input-icon input {
    padding: 0.75rem 0.75rem 0.75rem 2rem;
    font-size: 1rem;
  }

  .login-button {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    margin-top: 1.5rem;
  }

  .footer {
    margin-top: 1rem;
    font-size: 0.85rem;
    gap: 0.25rem;
  }

  .footer .links a {
    font-size: 1rem;
  }
}

/* Very small phones */
@media (max-width: 480px) {
  .login-form-container h2 {
    font-size: 1.3rem;
  }

  .login-form-container .subtext {
    font-size: 0.85rem;
  }

  .input-icon input {
    padding: 0.65rem 0.75rem 0.65rem 2rem;
    font-size: 0.95rem;
  }

  .login-button {
    font-size: 0.95rem;
    padding: 0.65rem;
  }
}
