/* ===================================================
   AZTTUR Login Page — branded background + card
   =================================================== */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  background-color: #f7faf8;
}

/* Full-screen background — Italian tricolor gradient */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  background:
    radial-gradient(circle at 20% 25%, rgba(27, 122, 62, 0.55) 0%, transparent 50%),
    radial-gradient(circle at 80% 75%, rgba(200, 32, 45, 0.55) 0%, transparent 50%),
    linear-gradient(135deg, #1B7A3E 0%, #ffffff 50%, #C8202D 100%);
  overflow: hidden;
}

/* Soft radial highlights in brand colors — no image watermark */
.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(255,255,255,0.35) 0%, transparent 45%),
    radial-gradient(circle at 82% 70%, rgba(255,255,255,0.30) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

/* Italian flag accent stripe at the very top */
.login-page::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    #1B7A3E 0%, #1B7A3E 33.33%,
    #FFFFFF 33.33%, #FFFFFF 66.66%,
    #C8202D 66.66%, #C8202D 100%
  );
  z-index: 2;
}

/* Login card */
.login-card {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(27, 122, 62, 0.30),
    0 8px 24px rgba(200, 32, 45, 0.18),
    0 0 0 1px rgba(27, 122, 62, 0.08);
  overflow: hidden;
}

/* Header */
.login-header {
  padding: 32px 32px 24px;
  text-align: center;
  background: linear-gradient(135deg, #145E2F 0%, #1B7A3E 50%, #2E9655 100%);
  color: #fff;
  position: relative;
}
.login-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #1B7A3E 0%, #1B7A3E 33.33%,
    #FFFFFF 33.33%, #FFFFFF 66.66%,
    #C8202D 66.66%, #C8202D 100%
  );
}

/* AZTTUR logo as profile picture */
.login-logo {
  display: block;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #fff;
  padding: 0;
  object-fit: cover;
  object-position: center;
  margin: 0 auto 14px;
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 7px #C8202D,
    0 10px 28px rgba(0,0,0,0.28);
}

.login-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.login-header p {
  margin: 6px 0 0;
  font-size: 12px;
  opacity: 0.92;
  font-weight: 500;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.95);
}

/* Body */
.login-body {
  padding: 28px 32px 24px;
}

.alert-login {
  border-radius: 10px;
  border: none;
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}
.alert-login.alert-danger {
  background: rgba(200, 32, 45, 0.1);
  color: #9E1822;
  border-left: 3px solid #C8202D;
}
.alert-login.alert-success {
  background: rgba(27, 122, 62, 0.1);
  color: #145E2F;
  border-left: 3px solid #1B7A3E;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: #5e6e66;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.form-control {
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid #cfdcd4;
  padding: 0 14px;
  font-size: 14px;
  color: #1a2922;
  background: #fafdfb;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}
.form-control:focus {
  border-color: #1B7A3E;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(27, 122, 62, 0.15);
  outline: none;
}

.input-group .form-control {
  border-right: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.input-group .btn {
  background: #fafdfb;
  border: 1.5px solid #cfdcd4;
  border-left: none;
  border-radius: 0 10px 10px 0;
  color: #5e6e66;
  padding: 0 14px;
  transition: color 0.2s;
}
.input-group .btn:hover {
  color: #1B7A3E;
}
.input-group:focus-within .btn,
.input-group:focus-within .form-control {
  border-color: #1B7A3E;
}

/* Login button — Italian red */
.btn-login {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #C8202D 0%, #9E1822 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(200, 32, 45, 0.35);
  margin-top: 4px;
}
.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 32, 45, 0.45);
  filter: brightness(1.05);
}
.btn-login:active {
  transform: translateY(0);
}

/* Footer */
.login-footer {
  padding: 14px 24px;
  text-align: center;
  font-size: 11px;
  color: #8aa097;
  background: #fafdfb;
  border-top: 1px solid #e2ece6;
  letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 480px) {
  .login-card { max-width: 100%; }
  .login-header { padding: 24px 24px 20px; }
  .login-body { padding: 22px 24px 20px; }
  .login-logo { width: 100px; height: 100px; }
  .login-header h1 { font-size: 24px; }
}
