/* =====================================================
   CSS REGISTER AND LOGIN PAGE FRAMEWORK
\  ===================================================== */


/* ===============================
   Global Options
   =============================== */

:root {
  --blue-dark: #0f2a44;
  --blue-main: #1e4f8a;
  --blue-soft: #f5faff;
  --border-soft: #d9e2ef;
  --text-main: #1a1a1a;

  --orange-soft: #ffd6b8;
  --orange-main: #ff9f66;
  --orange-dark: #f97316;

  --neutral-surface: #ffffff;
  --neutral-border: #e5e7eb;
  --neutral-hover: #f3f4f6;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-soft: 0 2px 8px rgba(15, 42, 68, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--blue-dark);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.login-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 400px;
  padding: 2.5rem 1rem;
}

/* ===============================
   Dynamic Div Elements
   =============================== */

   .login-states {
    width: 100%;
    overflow: hidden;
  }
  
  .login-state {
    display: none;
    opacity: 0;
    filter: blur(2px);
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
  }
  
  .login-state.active {
    display: block;
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }


/* ===============================
   Logo Box
   =============================== */

.logo-box,
.login-box {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-soft);
}

.logo-box {
    text-align: center;
}

.logo-box img {
    max-width: 240px;
    height: auto;
}

/* ===============================
   Login Box
   =============================== */

.login-box {
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.login-box h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
}

label {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 90%;
    padding: 0.5rem 0.6rem;
    margin-bottom: 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-soft);
    font-size: 16px;
}

input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,159,102,0.35);
}

.login-error {
  color: #b00020;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.5rem;
}

/* ===============================
   Login and Register Buttons
   =============================== */

.btn {
  appearance: none;
  border: none;
  border-radius: 6px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;

  background: none;
  color: inherit;

  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-login {
  font-weight: 600;
  width: 200px;
  height: 35px;
  margin-top: 1rem;
  background: red;
}

.btn-intent-normal {
  background: var(--neutral-surface);
  border: 1px solid var(--orange-main);
  color: #111827;
}

.btn-intent-normal:hover {
background: var(--orange-soft);
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;

  background: var(--neutral-hover);
  border: 1px solid #cbd5e1;
  color: #9ca3af;

  pointer-events: none;
}
