/* ===========================
   RIO LOGIN PAGE
=========================== */

:root {
  --primary: #2c2c2c;
  --white: #ffffff;
  --pink: #f5f5f5;
  --pink-light: rgba(244, 228, 225, 0.18);
  --border: rgba(255, 255, 255, 0.35);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.18);

  --transition: 0.35s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;

  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  overflow-x: hidden;
  overflow-y: auto;

  position: relative;

  color: var(--primary);
}

/* ===========================
BACKGROUND
=========================== */

body {
  background:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    linear-gradient(rgba(244, 228, 225, 0.2), rgba(244, 228, 225, 0.2)),
    url("../images/reformer1.jpg");

  background-size: cover;

  background-position: center;

  background-repeat: no-repeat;
}

/* ===========================
BLUR LAYER
=========================== */

.background-overlay {
  position: absolute;

  inset: 0;

  backdrop-filter: blur(8px);

  background: rgba(255, 255, 255, 0.03);
}

/* ===========================
CENTER SECTION
=========================== */

.login-section {
  position: relative;

  z-index: 2;

  width: 100%;

  display: flex;

  justify-content: center;

  align-items: center;

  padding: 40px;
}

/* ===========================
CARD
=========================== */

.login-card {
  width: 400px;
  max-width: 90%;
  padding: 25px 35px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow);
  animation: fadeUp 0.8s ease;
}

/* ===========================
LOGO
=========================== */

.logo {
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-size: 40px;
  letter-spacing: 10px;
  color: white;
  margin-bottom: 5px;
}

/* ===========================
HEADINGS
=========================== */

.login-card h1 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 500;
  text-align: center;
  color: white;
  margin-bottom: 6px;
}

.subtitle {
  text-align: center;
  color: white;
  opacity: 0.85;
  margin-bottom: 25px;
  line-height: 1.7;
  font-size: 15px;
}

/* ===========================
FORM
=========================== */

.login-form {
  display: flex;

  flex-direction: column;

  gap: 15px;
}

/* ===========================
LABELS
=========================== */

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 13px;

  letter-spacing: 1px;

  font-weight: 500;

  color: white;
}

/* ===========================
INPUTS
=========================== */

.input-group input {
  width: 100%;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  font-size: 15px;
  color: white;
  transition: var(--transition);
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.5px;
}

.input-group input:focus {
  border-color: #f4e4e1;

  background: rgba(255, 255, 255, 0.18);

  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

/* ===========================
PASSWORD
=========================== */

.password-box {
  position: relative;

  display: flex;

  align-items: center;
}

.password-box input {
  padding-right: 60px;
}

.show-password {
  position: absolute;
  right: 18px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;
  color: white;
  opacity: 0.75;
  transition: 0.3s;
}

.show-password:hover {
  opacity: 1;

  transform: scale(1.1);
}
/* ===========================
FORGOT PASSWORD
=========================== */

.forgot-password {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
}

.forgot-password a {
  color: white;
  font-size: 13px;
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
}

.forgot-password a:hover {
  opacity: 1;

  letter-spacing: 0.5px;
}

/* ===========================
LOGIN BUTTON
=========================== */

.login-btn {
  width: 100%;
  padding: 17px;
  margin-top: 10px;
  border: none;
  border-radius: 16px;
  background: #ffffff;
  color: #2c2c2c;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.login-btn:hover {
  transform: translateY(-4px);
  background: #f4e4e1;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.login-btn:active {
  transform: scale(0.98);
}

/* ===========================
DIVIDER
=========================== */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 38px 0 28px;
  position: relative;
}

.divider::before {
  content: "";
  position: absolute;
  left: 0;
  width: 42%;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}
.divider::after {
  content: "";
  position: absolute;
  right: 0;
  width: 42%;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.divider span {
  padding: 0 15px;
  color: white;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ===========================
REGISTER
=========================== */

.register-text {
  text-align: center;
  color: white;
  font-size: 14px;
  line-height: 1.8;
}
.register-text a {
  margin-left: 6px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.register-text a:hover {
  border-color: white;
  letter-spacing: 0.6px;
}

/* ===========================
ANIMATION
=========================== */

@keyframes fadeUp {
  0% {
    opacity: 0;

    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
RESPONSIVE
=========================== */

@media (max-width: 768px) {
  .login-card {
    width: 95%;
    max-width: 380px;
    padding: 30px 24px;

    border-radius: 22px;
  }

  .logo {
    font-size: 34px;

    letter-spacing: 8px;
  }

  .login-card h1 {
    font-size: 34px;
  }

  .subtitle {
    font-size: 14px;

    margin-bottom: 35px;
  }

  .login-btn {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .login-section {
    padding: 18px;
  }

  .login-card {
    padding: 28px 22px;
  }

  .logo {
    font-size: 28px;
  }

  .login-card h1 {
    font-size: 28px;
  }

  .subtitle {
    font-size: 13px;
  }

  .input-group input {
    padding: 14px 16px;
  }
}

/* Form error message */
.form-error {
  color: #c0392b;
  font-size: 13px;
  margin-top: -8px;
  margin-bottom: 10px;
  min-height: 16px;
  text-align: center;
}
