/* AYDES — Tam ekran Türkiye afet giriş ekranı (cam efektli panel) */

:root {
  --aydes-blue: #1e88e5;
  --aydes-blue-hover: #1565c0;
  --aydes-card-bg: rgba(255, 255, 255, 0.30);
  --aydes-card-border: rgba(255, 255, 255, 0.35);
  --aydes-text: #fff;
  --aydes-muted: rgba(255, 255, 255, 0.92);
  --aydes-input-bg: rgba(255, 255, 255, 0.96);
  --aydes-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hidden { display: none !important; }

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body.aydes-login {
  font-family: var(--aydes-font);
  color: var(--aydes-text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

.aydes-login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #1a2332;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.45s ease;
}

.aydes-login-bg.is-fading {
  opacity: 0.55;
}

.aydes-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 14, 24, 0.28) 0%, rgba(8, 14, 24, 0.12) 42%, rgba(8, 14, 24, 0.38) 100%);
  pointer-events: none;
}

.aydes-login-main {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 5rem;
}

.aydes-login-stack {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.aydes-login-card {
  width: 100%;
  padding: 1.65rem 1.85rem 1.35rem;
  border-radius: 22px;
  background: var(--aydes-card-bg);
  border: 1px solid var(--aydes-card-border);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.aydes-login-brand {
  text-align: center;
  margin-bottom: 1.15rem;
  padding: 0 0.25rem;
}

.aydes-login-logo {
  margin: 0;
  font-size: 2.55rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.aydes-login-tagline {
  margin: 0.6rem 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aydes-muted);
  line-height: 1.45;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.login-error {
  display: none;
  background: rgba(185, 28, 28, 0.92);
  color: #fff;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.login-success {
  display: none;
  background: rgba(22, 101, 52, 0.92);
  color: #fff;
}

.login-success.hidden {
  display: none !important;
}

.aydes-login-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.aydes-field input,
.aydes-field select {
  width: 100%;
  height: 42px;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  background: var(--aydes-input-bg);
  color: #1e293b;
  font-family: inherit;
  font-size: 0.875rem;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.aydes-field select {
  padding-right: 2rem;
  color: #64748b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  cursor: pointer;
}

.aydes-field select:valid {
  color: #1e293b;
}

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

.aydes-field input:focus,
.aydes-field select:focus {
  outline: none;
  border-color: var(--aydes-blue);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.22);
}

.aydes-btn-login {
  width: 100%;
  height: 44px;
  margin-top: 0.3rem;
  border: none;
  border-radius: 6px;
  background: var(--aydes-blue);
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  box-shadow: 0 4px 14px rgba(30, 136, 229, 0.35);
}

.aydes-btn-login:hover:not(:disabled) {
  background: var(--aydes-blue-hover);
}

.aydes-btn-login:active:not(:disabled) {
  transform: translateY(1px);
}

.aydes-btn-login:disabled {
  opacity: 0.7;
  cursor: wait;
}

.aydes-login-footer-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.8rem;
}

.aydes-forgot {
  font-size: 0.78rem;
  color: #1565c0;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.aydes-forgot:hover {
  text-decoration: underline;
  color: #0d47a1;
}

.login-mfa {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.login-mfa-hint {
  font-size: 0.85rem;
  color: #475569;
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.aydes-login-page-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1rem 1.25rem 1.25rem;
  text-align: center;
  pointer-events: none;
}

.aydes-login-page-footer p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

.aydes-login-page-footer a.aydes-login-footer-brand {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-shadow: inherit;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}

.aydes-login-page-footer a.aydes-login-footer-brand:hover,
.aydes-login-page-footer a.aydes-login-footer-brand:focus {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 480px) {
  .aydes-login-card {
    padding: 1.35rem 1.2rem 1.15rem;
    border-radius: 18px;
  }

  .aydes-login-logo {
    font-size: 2.15rem;
  }

  .aydes-login-brand {
    margin-bottom: 0.95rem;
  }
}
