:root {
  --primary-color: #2272ff;
  --transparent-bg: rgba(34, 114, 255, 0.05);
  --primary-color-dark: #1361e9;
  --black: #1b1b1b;
  --header-h: 26px;
  --nav-h: 65px;
  --br-xs: 6px;
  --br-sm: 8px;
  --br-lg: 16px;
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 12px;
  --gap-lg: 16px;
  --gap-xl: 20px;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --white: #ffffff;
}

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

body {
  font-family: var(--font-main);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header & Navigation */
.top-header {
  height: var(--header-h);
  background-color: var(--primary-color-dark);
  color: var(--white);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gap-lg);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar {
  height: var(--nav-h);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gap-lg);
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

.logo img {
  width: 135px;
  display: block;
}

.nav-title {
  display: none;
}

.nav-title h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--black);
}

/* Main Layout Structure */
main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h) - var(--nav-h));
}

/* Left Section: Welcome */
.welcome-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10%;
  background: #f7f7f7;
}

.welcome-section h2 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--gap-md);
}

.welcome-section span {
  color: var(--primary-color);
  display: block;
}

.welcome-section p {
  color: #555;
  max-width: 450px;
  font-size: 1.1rem;
}

/* Right Section: Login Form */
.sign-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f1f1;
  padding: var(--gap-xl);
}

.sign-form-container {
  background: var(--white);
  padding: 40px;
  border-radius: var(--br-lg);
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.sign-form-container h1 {
  font-size: 1.5rem;
  margin-bottom: var(--gap-xl);
}

.sign-fields {
  margin-bottom: var(--gap-lg);
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--gap-xs);
  color: #666;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--br-sm);
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Captcha Styling */
.captcha-box {
  background: var(--transparent-bg);
  padding: var(--gap-md);
  border-radius: var(--br-sm);
  margin-bottom: var(--gap-lg);
}

#image-captcha {
  border-radius: var(--br-xs);
  vertical-align: middle;
}

.refresh-link {
  font-size: 0.75rem;
  color: var(--primary-color);
  text-decoration: none;
  margin-left: var(--gap-sm);
}

/* Buttons & Interactive */
button {
  width: 100%;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: var(--br-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--gap-sm);
}

button:hover {
  background: var(--primary-color-dark);
}

/* For responsiveness */
@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }

  .welcome-section {
    text-align: center;
    align-items: center;
    padding: 60px 20px;
  }
}


/* START: Toast styles */
/* Container to handle toast position on screen */
.custom-toast-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

/* Toast Box */
.custom-toast {
  min-width: 250px;
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: sans-serif;
  color: white;
  animation: slideIn 0.3s ease-out;
}

/* classes for $toastClass */
.bg-success {
  background-color: #28a745;
}

.bg-danger {
  background-color: #dc3545;
}

.bg-info {
  background-color: #17a2b8;
}

.close-toast {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  margin-left: 15px;
  line-height: 1;
}

button.close-toast {
  width: auto;
  padding: 4px 8px;
}

/* entrance animation */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* END: Toast styles */


/* START: index dummy page styles */
/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - var(--header-h) - var(--nav-h));
  padding: var(--gap-xl);
  background: #f1f1f1;
}

.container {
  max-width: 600px;
}

.hero .container span {
  color: var(--primary-color);
}

.badge {
  display: inline-block;
  background: var(--transparent-bg);
  color: var(--primary-color);
  padding: var(--gap-xs) var(--gap-md);
  border-radius: var(--br-lg);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--gap-md);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: var(--gap-sm);
  font-weight: 800;
}

p {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: var(--gap-xl);
}

/* END: index dummy page styles */
