:root {
  --eyb-primary: #0369a1;
  --eyb-primary-dark: #075985;
  --eyb-primary-light: #38bdf8;
  --eyb-accent: #0891b2;
  --eyb-bg-1: #e0f2fe;
  --eyb-bg-2: #f0f9ff;
  --eyb-text: #0f172a;
  --eyb-muted: #64748b;
  --eyb-border: #e2e8f0;
  --eyb-danger: #dc2626;
}

html,
body {
  height: 100%;
}

body.eyb-login {
  margin: 0;
  font-family: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--eyb-text);
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(56, 189, 248, 0.35), transparent 60%),
    radial-gradient(900px 600px at 110% 110%, rgba(8, 145, 178, 0.45), transparent 60%),
    linear-gradient(135deg, #0c4a6e 0%, #0e7490 55%, #0369a1 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body.eyb-login::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/pages/login/images/pipes-pattern.svg");
  background-size: 240px 240px;
  background-repeat: repeat;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  animation: eyb-drift 60s linear infinite;
}

@keyframes eyb-drift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 480px 240px;
  }
}

.eyb-bubbles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.eyb-bubble {
  position: absolute;
  bottom: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), rgba(186, 230, 253, 0.1) 70%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  animation: eyb-float linear infinite;
}

@keyframes eyb-float {
  0% {
    transform: translateY(0) scale(0.9);
    opacity: 0;
  }

  15%,
  85% {
    opacity: 0.85;
  }

  100% {
    transform: translateY(-110vh) scale(1.1);
    opacity: 0;
  }
}

.eyb-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 2;
}

.eyb-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 30px 80px -20px rgba(2, 32, 62, 0.55),
    0 8px 24px -12px rgba(15, 23, 42, 0.25);
  padding: 40px 36px 32px;
  animation: eyb-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  position: relative;
  z-index: 3;
}

@keyframes eyb-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

.eyb-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}

.eyb-brand-logo {
  width: min(132px, 42vw);
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 24px rgba(3, 105, 161, 0.18));
}

.eyb-brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.1;
}

.eyb-brand-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--eyb-primary-dark);
}

.eyb-brand-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--eyb-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.eyb-title {
  text-align: center;
  margin: 18px 0 4px;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--eyb-text);
}

.eyb-subtitle {
  text-align: center;
  margin: 0 0 22px;
  color: var(--eyb-muted);
  font-size: 0.92rem;
}

.eyb-alert {
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  animation: eyb-rise 0.35s ease both;
}

.eyb-alert.is-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.eyb-alert.is-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.eyb-field {
  margin-bottom: 14px;
}

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

.eyb-input-group .mdi {
  position: absolute;
  left: 14px;
  font-size: 18px;
  color: var(--eyb-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.eyb-input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border: 1px solid var(--eyb-border);
  border-radius: 12px;
  background-color: #f8fafc;
  font-size: 0.95rem;
  color: var(--eyb-text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.eyb-input::placeholder {
  color: #94a3b8;
}

.eyb-input:focus {
  background-color: #fff;
  border-color: var(--eyb-primary);
  box-shadow: 0 0 0 4px rgba(3, 105, 161, 0.12);
}

.eyb-input:focus + .mdi,
.eyb-input-group:focus-within .mdi {
  color: var(--eyb-primary);
}

.eyb-input.is-invalid {
  border-color: var(--eyb-danger);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.eyb-input-group:focus-within .eyb-input.is-invalid + .mdi,
.eyb-input.is-invalid ~ .mdi {
  color: var(--eyb-danger);
}

.eyb-toggle-pwd {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--eyb-muted);
  cursor: pointer;
  line-height: 1;
  border-radius: 8px;
  font-size: 18px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.eyb-toggle-pwd:hover {
  color: var(--eyb-primary);
  background-color: rgba(3, 105, 161, 0.08);
}

.eyb-input.has-toggle {
  padding-right: 46px;
}

.eyb-panel {
  animation: eyb-rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyb-error {
  color: var(--eyb-danger);
  font-size: 0.8rem;
  margin-top: 6px;
  min-height: 1rem;
}

.eyb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 18px;
  font-size: 0.88rem;
  gap: 12px;
}

.eyb-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--eyb-muted);
  user-select: none;
}

.eyb-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--eyb-primary);
  cursor: pointer;
}

.eyb-link {
  color: var(--eyb-primary);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.eyb-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.25s ease;
}

.eyb-link:hover {
  color: var(--eyb-primary-dark);
}

.eyb-link:hover::after {
  width: 100%;
}

.eyb-btn {
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.4px;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--eyb-primary) 0%, var(--eyb-accent) 100%);
  box-shadow: 0 10px 24px -10px rgba(3, 105, 161, 0.55);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.eyb-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -12px rgba(3, 105, 161, 0.6);
  filter: brightness(1.03);
}

.eyb-btn:active {
  transform: translateY(0);
}

.eyb-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.eyb-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--eyb-muted);
}

@media (max-width: 480px) {
  .eyb-card {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .eyb-brand-logo {
    width: min(108px, 38vw);
  }

  .eyb-brand-name {
    font-size: 1.1rem;
  }

  .eyb-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
