<style>
  /* ── Reset & Full-Screen Centering ── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html, body {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: radial-gradient(ellipse at 60% 40%, #0b0b2e 0%, #000 100%);
  }

  /* Force ALL parent wrappers Laravel may inject to be full height*/
  body > div,
  body > main,
  body > section,
  body > .app,
  body > #app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .login-page {
    flex: 1;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: radial-gradient(ellipse at 60% 40%, #0b0b2e 0%, #000 100%);
  }

  /* ── Card ── */
  .wrapper {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(
      135deg,
      rgba(2, 0, 36, 0.95)  0%,
      rgba(9, 9, 121, 0.95) 60%,
      rgba(0, 91, 255, 0.9) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    border-radius: 32px;
    padding: clamp(28px, 6vw, 48px) clamp(24px, 6vw, 44px);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 24px 80px rgba(0, 60, 255, 0.25), 0 8px 32px rgba(0,0,0,0.6);
    animation: fadeUp .55s cubic-bezier(.22,1,.36,1) both;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ── Heading ── */
  .form-login {
    font-size: clamp(26px, 6vw, 38px);
    font-weight: 700;
    text-align: center;
    margin-bottom: clamp(20px, 5vw, 36px);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 40%, rgba(160,180,255,0.85));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* ── Alert ── */
  .alert-danger {
    background: rgba(255, 60, 60, 0.18);
    border: 1px solid rgba(255, 80, 80, 0.45);
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 20px;
    color: #ffb3b3;
    text-align: center;
  }

  /* ── Input Box ── */
  .input-box {
    position: relative;
    width: 100%;
    height: 52px;
    margin-bottom: 20px;
  }

  .input-box input {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.22);
    border-radius: 40px;
    font-size: clamp(14px, 3.5vw, 16px);
    color: #fff;
    padding: 0 20px;
    outline: none;
    transition: border-color .25s, background .25s, box-shadow .25s;
    -webkit-appearance: none;
  }

  .input-box input::placeholder { color: rgba(255,255,255,0.55); }

  .input-box input:focus {
    border-color: rgba(100,160,255,0.7);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 3px rgba(60,120,255,0.20);
  }

  /* ── Remember / Back ── */
  .remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(13px, 3vw, 14.5px);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .remember-forgot label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
  }

  .remember-forgot label input[type="checkbox"] {
    accent-color: #5b9bff;
    width: 15px;
    height: 15px;
  }

  .remember-forgot a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color .2s;
  }

  .remember-forgot a:hover { color: #fff; text-decoration: underline; }

  /* ── Button ── */
  .btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 4px;
  }

  .btn {
    width: clamp(130px, 40%, 160px);
    height: 48px;
    background: #fff;
    border: none;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    cursor: pointer;
    font-size: clamp(14px, 3.5vw, 16px);
    color: #1a1a4e;
    font-weight: 700;
    letter-spacing: .3px;
    transition: transform .2s, box-shadow .2s, background .2s;
  }

  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(60,100,255,0.35);
    background: #e8f0ff;
  }

  .btn:active { transform: translateY(0); }

  /* ── Small screens ── */
  @media (max-width: 360px) {
    .wrapper { border-radius: 24px}

    .remember-forgot { flex-direction: column; align-items: flex-start; }
  }
</style>

<div class="login-page">
  <div class="wrapper">

    @if($errors->any())
      <div class="alert alert-danger">{{ $errors->first() }}</div>
    @endif

    <form method="POST" action="{{ route('login') }}">
      @csrf

      <h1 class="form-login">Login</h1>

      <div class="input-box">
        <input
          id="email"
          type="email"
          name="email"
          placeholder="Email"
          value="{{ old('email') }}"
          required
          autofocus
          autocomplete="email"
        >
      </div>

      <div class="input-box">
        <input
          id="password"
          type="password"
          name="password"
          placeholder="Password"
          required
          autocomplete="current-password"
        >
      </div>

      <div class="remember-forgot">
        <label>
          <input type="checkbox" name="remember" id="remember"> Remember me
        </label>
        <a href="/">Back</a>
      </div>

      <div class="btn-wrap">
        <button type="submit" class="btn">Login</button>
      </div>

    </form>
  </div>
</div>
