/* ═══════════════════════════════════════════════════════════════
   UWELL CLOUD — LOGIN PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }
.login-footer .care-contact { flex-basis: 100%; line-height: 1.6; text-align: center; }
.login-footer .care-contact span { display: block; }
.login-footer .care-contact a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }

body {
  font-family: 'Outfit', sans-serif;
  background: #0a0f1e;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e0e6ed;
  overflow: hidden;
}

.login-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 1.5rem;
  z-index: 1;
}

.login-card {
  background: rgba(15, 22, 42, 0.85);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: cardSlideIn 0.6s ease;
}

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

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.brand-icon {
  font-size: 1.8rem;
  color: #D4AF37;
  text-shadow: 0 0 20px rgba(212,175,55,0.4);
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #D4AF37, #f0d878);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.login-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.login-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input:focus {
  border-color: #0A5C5A;
  box-shadow: 0 0 0 3px rgba(10, 92, 90, 0.2);
  background: rgba(255,255,255,0.08);
}

.form-group input::placeholder {
  color: rgba(255,255,255,0.25);
}

.login-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.login-btn {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, #0A5C5A, #0d7a77);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.login-btn:hover {
  background: linear-gradient(135deg, #0d7a77, #10918e);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10, 92, 90, 0.4);
}

.btn-loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.login-footer a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.login-footer a:hover {
  color: #D4AF37;
}

/* Background decoration */
.login-bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(10,92,90,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 80% 70%, rgba(212,175,55,0.08) 0%, transparent 70%);
}

/* Standalone multilingual account access. */
body { overflow: auto; min-height: 100svh; font-family: system-ui, sans-serif; }
[hidden] { display: none !important; }
.login-container { max-width: 520px; }
.login-card { animation: none; padding: clamp(1.25rem, 5vw, 2.5rem); }
h1 { font-size: 1.5rem; margin-block: 1.5rem; line-height: 1.3; }
.login-brand { margin-bottom: 1.25rem; }
.brand-name { background: none; -webkit-text-fill-color: currentColor; color: #f0d878; }
.login-desc, .field-hint, .form-group label, .login-footer a { color: #c0cad8; }
.login-desc, .field-hint { font-size: .95rem; line-height: 1.55; }
.field-hint { margin-block-start: .5rem; }
.form-group label { text-transform: none; letter-spacing: normal; font-size: .95rem; }
.form-group input { font: inherit; min-height: 48px; border-color: #64748b; }
.form-group input::placeholder { color: #a8b2c4; }
.language-control { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.language-control select { max-width: 100%; min-height: 44px; padding: .5rem; font: inherit; color: #e0e6ed; background: #172033; border: 1px solid #64748b; border-radius: 8px; }
.auth-tabs { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.auth-tab { flex: 1; min-height: 48px; padding: .75rem .5rem; border: 1px solid #64748b; border-radius: 8px; background: transparent; color: #c0cad8; font: inherit; cursor: pointer; overflow-wrap: anywhere; }
.auth-tab.active { background: #263448; color: #fff; border-color: #f0d878; }
.login-footer { display: flex; flex-direction: column; gap: .25rem; }
.login-footer a { min-height: 44px; display: flex; align-items: center; justify-content: center; text-decoration: underline; }
.login-btn:hover { transform: none; }
button:disabled { opacity: .7; cursor: wait; }
:focus-visible { outline: 3px solid #f0d878 !important; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 380px) { .login-container { padding: .75rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.login-btn:hover { background: #0a6663; }
