/* ==========================================================================
   GLOBAL RESET & VARIABLES (Skip if using shared variables from home.css)
   ========================================================================== */
:root {
  --primary: #089789;
  --primary-hover: #067469;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --font-family: 'Poppins', sans-serif;
  --transition: all 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   BACKGROUND GLOW SHAPES
   ========================================================================== */
.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
}

.shape1 {
  width: 400px;
  height: 400px;
  background-color: rgba(8, 151, 137, 0.22);
  top: -100px;
  left: -100px;
}

.shape2 {
  width: 450px;
  height: 450px;
  background-color: rgba(56, 189, 248, 0.18);
  bottom: -150px;
  right: -100px;
}

.shape3 {
  width: 300px;
  height: 300px;
  background-color: rgba(8, 151, 137, 0.12);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ==========================================================================
   NAVBAR & LANGUAGE SELECTOR
   ========================================================================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo i {
  font-size: 1.5rem;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-selector select {
  padding: 0.5rem 0.85rem;
  font-family: var(--font-family);
  font-size: 0.875rem;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.language-selector select:focus {
  border-color: var(--primary);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================================================
   LOGIN CARD & FORM
   ========================================================================== */
.auth {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

.auth-card {
  background-color: var(--bg-card);
  width: 100%;
  max-width: 440px;
  padding: 2.5rem 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h2 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.5;
}

.auth form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-family);
  font-size: 0.925rem;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(8, 151, 137, 0.18);
}

.form-group input::placeholder {
  color: #94a3b8;
}

/* Password Toggle Icon */
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  padding-right: 2.75rem;
}

.password-field i {
  position: absolute;
  right: 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.password-field i:hover {
  color: var(--primary);
}

/* Error Text */
.error {
  font-size: 0.78rem;
  color: #ef4444;
  display: block;
  min-height: 1em;
}

/* Remember Me & Forgot Password Row */
.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -0.25rem;
}

.remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.remember input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.login-options a {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.login-options a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Submit Button */
.login-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--radius-sm);
}

/* Footer Link inside Auth Card */
.auth-footer {
  text-align: center;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
  margin-left: 0.25rem;
  text-decoration: none;
}

.auth-footer a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}
.error{
    display: block;
    color: #dc2626;
    font-size: 13px;
    margin-top: 5px;
    min-height: 18px;
}

.password-field i{
    cursor: pointer;
    user-select: none;
    transition: color .3s ease;
}

.password-field i:hover{
    color: #089789;
}

/* ==========================================================================
   PAGE FOOTER
   ========================================================================== */
footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

  .auth {
    padding: 1.5rem 1rem;
  }

  .auth-card {
    padding: 1.75rem 1.25rem;
    width: 85%;
  }

  .auth-header h2 {
    font-size: 1.5rem;
  }

  .login-options {
    flex-direction: row;
    align-items: center;
  }
}

/* ==========================================
   LOGIN NOTIFICATION
========================================== */

.notification-overlay {
    position: fixed !important;

    top: 0 !important;
    left: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    background: rgba(0, 0, 0, 0.45) !important;

    backdrop-filter: blur(4px);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;

    z-index: 999999 !important;
}


/* SHOW */

.notification-overlay.show {
    opacity: 1;

    visibility: visible;
}


/* ==========================================
   NOTIFICATION BOX
========================================== */

.notification-box {
    width: 360px;

    max-width: calc(100% - 40px);

    padding: 30px 25px;

    background: #ffffff;

    border-radius: 18px;

    text-align: center;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25);

    transform: scale(0.85);

    transition:
        transform 0.3s ease;
}


/* SHOW ANIMATION */

.notification-overlay.show .notification-box {
    transform: scale(1);
}


/* ==========================================
   ICON
========================================== */

.notification-icon {
    width: 65px;

    height: 65px;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    font-size: 30px;
}


/* SUCCESS */

.notification-box.success
.notification-icon {

    background: #ecfdf5;

    color: #16a34a;
}


/* ERROR */

.notification-box.error
.notification-icon {

    background: #fef2f2;

    color: #dc2626;
}


/* ==========================================
   TITLE
========================================== */

.notification-box h3 {

    margin: 0 0 8px;

    font-size: 21px;

    font-weight: 600;

    color: #1f2937;
}


/* ==========================================
   MESSAGE
========================================== */

.notification-box p {

    margin: 0;

    font-size: 14px;

    line-height: 1.6;

    color: #6b7280;
}