/* ========== LOGIN PAGE STYLING ========== */

.login-body {
  margin: 0;
  padding: 0;
  height: 100vh;
  background: linear-gradient(135deg, #050014, #11002a 40%, #000618);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-container {
  width: 90%;
  max-width: 360px;
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 30px rgba(0, 255, 200, 0.25),
              0 0 60px rgba(140, 60, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.login-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-subtitle {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 24px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Form fields */
.form-field {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  letter-spacing: 0.1em;
  opacity: 0.8;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

/* Button */
.login-button {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  color: #000;
  background: linear-gradient(135deg, #00ffd5, #66b3ff);
  box-shadow: 0 0 18px rgba(0,255,255,0.45);
  transition: 0.2s;
}

.login-button:hover {
  box-shadow: 0 0 22px rgba(0,255,255,0.75);
  transform: scale(1.03);
}

/* Error message */
.error-box {
  margin-top: 16px;
  padding: 10px;
  background: rgba(255, 0, 60, 0.2);
  border-left: 3px solid #ff003c;
  border-radius: 8px;
  font-size: 13px;
  color: #ff7b7b;
}

/* --- GLOBAL RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-body {
    height: 100vh;
    background: radial-gradient(circle at top, #202040 0%, #0c0c15 80%);
    font-family: "Segoe UI", Tahoma, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #eaeaff;
}

/* --- LOGIN CONTAINER --- */
.login-container {
    width: 90%;
    max-width: 380px;
    padding: 30px 26px;
    background: rgba(15, 15, 30, 0.65);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 25px rgba(150, 80, 255, 0.35),
        inset 0 0 40px rgba(40, 20, 80, 0.25);
    animation: fadeIn 0.8s ease;
}

/* --- HEADER --- */
.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, #a955ff, #5dc5ff);
    color: transparent;
    -webkit-background-clip: text;
}

.login-sub {
    font-size: 15px;
    opacity: 0.7;
}

/* --- ERROR BOX --- */
.login-error {
    background: rgba(255, 0, 60, 0.2);
    border: 1px solid rgba(255, 0, 60, 0.45);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 18px;
    text-align: center;
    font-weight: 600;
    color: #ff003c;
    text-shadow: 0 0 8px rgba(255, 0, 60, 0.8);
}

/* --- INPUT FIELD --- */
.input-wrap {
    position: relative;
    margin-bottom: 22px;
}

.neon-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(140, 100, 255, 0.3);
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 15px;
    outline: none;

    box-shadow:
        inset 0 0 10px rgba(90, 50, 200, 0.2),
        0 0 10px rgba(90, 50, 200, 0.2);
}

.neon-input:focus {
    border-color: #a76bff;
    box-shadow:
        0 0 12px #a76bff,
        inset 0 0 10px rgba(167, 107, 255, 0.4);
}

.focus-border {
    position: absolute;
    bottom: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #a76bff, #5dc5ff);
    left: 50%;
    transition: 0.25s ease;
}

.neon-input:focus + .focus-border {
    width: 100%;
    left: 0;
}

/* --- LOGIN BUTTON --- */
.login-btn {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: bold;

    background: linear-gradient(90deg, #8d44ff, #4f9eff);
    color: #fff;

    cursor: pointer;
    transition: 0.25s ease;
    box-shadow:
        0 0 15px rgba(140, 70, 255, 0.4),
        inset 0 0 10px rgba(255,255,255,0.15);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 25px rgba(140, 70, 255, 0.7),
        inset 0 0 10px rgba(255,255,255,0.3);
}

.login-btn:active {
    transform: scale(0.97);
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
