@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=DM+Sans:wght@300;400;500&display=swap");

:root {
  --silver-light: #f0f0f0;
  --silver-mid: #cccccc;
  --silver-dark: #999999;
  --navy: #003465;
  --navy-deep: #00234a;
  --white: #ffffff;
  --text-dark: #2a2a2a;
  --text-muted: #888;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --input-border: rgba(200, 200, 200, 0.5);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius-card: 2rem;
  --radius-input: 0.8rem;
  --radius-btn: 0.8rem;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  position: relative;
  font-family: "DM Sans", sans-serif;
  background: linear-gradient(135deg, #e8e8e8 0%, #f8f8f8 40%, #d4d4d4 70%, #ffffff 100%);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  font-size: 16px;
  min-height: 100vh;
}

/* Subtle noise texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(0, 52, 101, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(180, 180, 180, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(0, 52, 101, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Decorative line accent */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--navy), #6a9fd8, var(--navy), transparent);
  z-index: 10;
}

/* ── Layout ── */
.login-form {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* ── Card ── */
.login-form .box {
  min-width: 46rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4.5rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-radius: var(--radius-card);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.6) inset,
    0 -1px 0 rgba(0, 0, 0, 0.04) inset,
    var(--shadow-soft),
    0 32px 64px rgba(0, 0, 0, 0.1);
  animation: cardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Logo ── */
.login-form .box .logo {
  margin-bottom: 0.5rem;
}

.login-form .box .logo h1 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.login-form .box .logo h1::before {
  content: "";
  display: inline-block;
  width: 2.4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--navy), transparent);
}

/* ── Heading ── */
.login-form .box .heading h2 {
  font-family: "Playfair Display", serif;
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 1.2rem 0 2.8rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.login-form .box .heading h2 span {
  color: var(--navy);
}

/* ── Form fields ── */
.login-form .box .form-fields {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.login-form .box .form-fields .label-box {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  opacity: 0.7;
  margin-bottom: 0.6rem;
}

/* ── Input wrapper ── */
.login-form .box .form-fields .input-box {
  position: relative;
  margin-bottom: 1.8rem;
  width: 100%;
}

.login-form .box .form-fields .input-box .form-control {
  height: 4.8rem;
  width: 100%;
  padding: 0 1.6rem 0 5rem;
  font-family: "DM Sans", sans-serif;
  font-size: 1.5rem;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--input-border);
  border-bottom: 2px solid var(--input-border);
  border-radius: var(--radius-input);
  outline: none;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) inset;
}

.login-form .box .form-fields .input-box .form-control::placeholder {
  color: #b0b0b0;
  font-weight: 300;
}

.login-form .box .form-fields .input-box .form-control:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--navy);
  border-bottom-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 52, 101, 0.08);
}

/* Icon inside input */
.login-form .box .form-fields .input-box span {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver-dark);
  pointer-events: none;
}

.login-form .box .form-fields .input-box span img {
  width: 2rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.login-form .box .form-fields .input-box:focus-within span img {
  opacity: 0.9;
}

/* ── Forgot password ── */
.login-form .box .form-fields .forgot {
  text-align: right;
  margin-top: -0.8rem;
}

.login-form .box .form-fields .forgot a {
  display: inline-block;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 2.5rem;
  opacity: 0.75;
  transition: opacity 0.2s;
  letter-spacing: 0.02em;
}

.login-form .box .form-fields .forgot a:hover {
  opacity: 1;
}

/* ── Button ── */
.login-form .box .form-fields .button-box button {
  display: block;
  width: 100%;
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 1.4rem 3.5rem;
  background: linear-gradient(135deg, var(--navy) 0%, #004d99 100%);
  border: none;
  cursor: pointer;
  border-radius: var(--radius-btn);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 52, 101, 0.3);
}

.login-form .box .form-fields .button-box button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.login-form .box .form-fields .button-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 52, 101, 0.4);
}

.login-form .box .form-fields .button-box button:active {
  transform: translateY(0);
}

/* ── Divider ── */
.login-form .box .social-links p {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.15rem;
  font-weight: 400;
  margin: 2.5rem 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-form .box .social-links p::before,
.login-form .box .social-links p::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver-mid), transparent);
}

/* ── Social buttons ── */
.login-form .box .social-links {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.login-form .box .social-links .links-box {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 1.2rem;
}

.login-form .box .social-links .links-box .box-social {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(200, 200, 200, 0.5);
  padding: 1rem;
  width: calc(33.3% - 8px);
  border-radius: var(--radius-input);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.login-form .box .social-links .links-box a:hover .box-social,
.login-form .box .social-links .links-box .box-social:hover {
  background-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-form .box .social-links .links-box .box-social img {
  height: 2.2rem;
}

/* ── Register link ── */
.login-form .box .register {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.8rem;
  gap: 0.4rem;
}

.login-form .box .register p,
.login-form .box .register a {
  color: var(--text-dark);
  font-size: 1.3rem;
  font-weight: 300;
  opacity: 0.75;
}

.login-form .box .register a {
  text-decoration: none;
  font-weight: 500;
  color: var(--navy);
  opacity: 1;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.login-form .box .register a:hover {
  border-bottom-color: var(--navy);
}

/* ── Footer ── */
.copyright {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-bottom: 2rem;
}

.copyright p {
  color: var(--text-dark);
  opacity: 0.55;
  font-family: "DM Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
}

.copyright a {
  border-bottom: 1px solid rgba(0, 52, 101, 0.4);
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}

.copyright a:hover {
  border-bottom-color: var(--navy);
  opacity: 0.8;
}

.copyright img {
  width: 1.4rem;
  height: 1.4rem;
  animation: heart 2s infinite ease;
  margin: 0 0.4rem;
  vertical-align: middle;
}

@keyframes heart {
  0%, 100% { transform: scale(1); }
  10% { transform: scale(1.25); }
}

/* ── Responsive ── */
@media (max-width: 500px) {
  .login-form .box {
    min-width: 100%;
    padding: 3.5rem 2.5rem;
    border-radius: 1.5rem;
  }
}