<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Login - {{ config('app.name', 'Laravel') }}</title>
  <link href="{{ asset('bootstrap537/css/bootstrap.min.css') }}" rel="stylesheet">
  <link rel="shortcut icon" href="{{ asset('theme/images/favicon.png') }}" />

  <style>
    body {
      min-height: 100vh;
      background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Segoe UI', sans-serif;
    }

    .login-card {
      background: rgba(255, 255, 255, 0.1);
      border-radius: 20px;
      backdrop-filter: blur(10px);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
      padding: 2rem;
      width: 100%;
      max-width: 380px;
      color: #fff;
    }

    .login-card h3 {
      text-align: center;
      font-weight: 600;
      margin-bottom: 1.5rem;
      letter-spacing: 1px;
    }

    .form-control {
      background: rgba(255, 255, 255, 0.1);
      border: none;
      border-radius: 10px;
      color: #fff;
    }

    .form-control:focus {
      box-shadow: 0 0 0 0.2rem rgba(0, 180, 216, 0.5);
      background: rgba(255, 255, 255, 0.15);
      color: #fff;
    }

    .btn-futuristic {
      background: linear-gradient(90deg, #00b4d8, #0077b6);
      border: none;
      border-radius: 10px;
      padding: 0.7rem;
      font-weight: 600;
      color: #fff;
      transition: all 0.3s ease;
    }

    .btn-futuristic:hover {
      background: linear-gradient(90deg, #0077b6, #00b4d8);
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(0, 180, 216, 0.4);
    }

    .text-small {
      font-size: 0.85rem;
      color: #ddd;
    }

    a {
      color: #00b4d8;
      text-decoration: none;
    }

    a:hover {
      text-decoration: underline;
    }
  </style>
</head>
<body>

  <div class="login-card text-center">
    <h4>Welcome Back</h4>
    <h3>HABIB CABLES</h3>

    <!-- Session Status -->
    @if (session('status'))
      <div class="alert alert-success text-center py-2">
        {{ session('status') }}
      </div>
    @endif

    <!-- Validation Errors -->
    @if ($errors->any())
      <div class="alert alert-danger">
        <ul class="mb-0">
          @foreach ($errors->all() as $error)
            <li>{{ $error }}</li>
          @endforeach
        </ul>
      </div>
    @endif

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

      <div class="mb-3">
        <input type="text" name="login"
               value="{{ old('login') }}"
               class="form-control @error('login') is-invalid @enderror"
               placeholder="Email or Username" required autofocus>
      </div>

      <div class="mb-3">
        <input type="password" name="password"
               class="form-control @error('password') is-invalid @enderror"
               placeholder="Password" required>
      </div>

      <div class="d-grid mb-3">
        <button type="submit" class="btn btn-futuristic">Login</button>
      </div>

    </form>
  </div>

  <script src="{{ asset('bootstrap537/js/bootstrap.min.js') }}"></script>
</body>
</html>
