/* ===== SIAN WHOLESALE — LOGIN THEME ===== */
:root {
  --brand-dark:   #1d4e5e;   /* deep teal (SIAN / WHOLESALE text) */
  --brand-darker: #163a47;
  --brand-accent: #29abe2;   /* cyan arrow accent */
  --brand-accent-d: #1c93c7;
  --ink:          #1f2d33;
  --muted:        #6c8088;
  --line:         #e1e9ec;
  --bg:           #eef4f6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(41, 171, 226, 0.18), transparent 55%),
    radial-gradient(circle at 82% 82%, rgba(29, 78, 94, 0.20), transparent 55%),
    linear-gradient(135deg, #f4f9fb 0%, #e3eef2 60%, #d6e6ec 100%);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-x: hidden;
}

/* MAIN LAYOUT */
.login-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
}

.login-right {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* CARD */
.login-box {
  width: 100%;
  max-width: 420px;
  padding: 40px 36px 36px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow:
    0 25px 70px rgba(22, 58, 71, 0.18),
    0 0 40px rgba(41, 171, 226, 0.06);
  animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* LOGO INSIDE CARD */
.brand {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.brand img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

/* HEADER */
.login-box h2 {
  text-align: center;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.2px;
  color: var(--brand-dark);
}

.sub-text {
  text-align: center;
  margin-bottom: 26px;
  font-size: 13px;
  color: var(--muted);
}

/* ERROR BOX */
.error-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(214, 48, 48, 0.08);
  border: 1px solid rgba(214, 48, 48, 0.30);
  color: #b3261e;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.error-text {
  flex: 1;
  line-height: 1.4;
}

.error-close {
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  opacity: 0.7;
  user-select: none;
  transition: opacity 0.15s ease;
}

.error-close:hover { opacity: 1; }

/* INPUT */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  font-size: 12px;
  color: var(--brand-dark);
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f7fafb;
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input::placeholder {
  color: #9bb0b7;
}

.form-group input:hover {
  border-color: #c7d6db;
}

.form-group input:focus {
  border-color: var(--brand-accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.18);
}

/* PASSWORD */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 44px;
}

.password-wrapper .eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.55;
  font-size: 16px;
  user-select: none;
  transition: opacity 0.15s ease;
}

.password-wrapper .eye:hover { opacity: 1; }

/* BUTTON */
.btn-login {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-dark));
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  cursor: pointer;
  margin-top: 6px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(29, 78, 94, 0.30);
  filter: brightness(1.04);
}

.btn-login:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(29, 78, 94, 0.25);
}

/* GO TO WEBSITE LINK */
.website-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 18px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.2px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.website-link svg {
  transition: transform 0.2s ease;
}

.website-link:hover {
  color: var(--brand-accent-d);
  background: rgba(41, 171, 226, 0.08);
}

.website-link:hover svg {
  transform: translate(2px, -2px);
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .login-box {
    padding: 30px 22px 26px;
    border-radius: 14px;
  }

  .login-box h2 { font-size: 22px; }

  .brand img { height: 52px; }
}
