<!DOCTYPE html>
<html lang="ta">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>MMMK Admin Login</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <style>
    body {
      background: #1a237e;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Segoe UI', sans-serif;
    }
    .login-wrap { width: 100%; max-width: 420px; padding: 16px; }
    .login-card {
      background: #fff;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }
    .login-header {
      background: #1a237e;
      padding: 28px 28px 24px;
      text-align: center;
    }
    .login-header h4 {
      color: #fff;
      font-size: 16px;
      font-weight: 600;
      margin: 0 0 4px;
      line-height: 1.5;
    }
    .login-header small { color: rgba(255,255,255,0.5); font-size: 12px; }
    .login-body { padding: 28px; }
    .form-label { font-size: 13px; color: #555; font-weight: 500; margin-bottom: 6px; }
    .form-control {
      border: 1px solid #e0e0e0;
      border-radius: 8px;
      font-size: 14px;
      padding: 10px 14px;
      transition: border 0.15s;
    }
    .form-control:focus {
      border-color: #1a237e;
      box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
    }
    .btn-login {
      background: #1a237e;
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 11px;
      font-size: 14px;
      font-weight: 600;
      width: 100%;
      cursor: pointer;
      transition: background 0.15s;
    }
    .btn-login:hover { background: #283593; }
    .alert-error {
      background: #fce4ec;
      border: 1px solid #f48fb1;
      color: #c62828;
      padding: 10px 14px;
      border-radius: 8px;
      font-size: 13px;
      margin-bottom: 16px;
    }
  </style>
</head>
<body>
<div class="login-wrap">
  <div class="login-card">
    <div class="login-header">
      <h4>மாமன்னர் மருதிருவர்<br>மக்கள் கட்சி</h4>
      <small>Admin Panel — உள்நுழைவு</small>
    </div>
    <div class="login-body">
      @if($errors->any())
        <div class="alert-error">{{ $errors->first() }}</div>
      @endif
      <form method="POST" action="{{ route('admin.login.post') }}">
        @csrf
        <div class="mb-3">
          <label class="form-label">மின்னஞ்சல்</label>
          <input type="email" name="email" class="form-control"
                 value="{{ old('email') }}" placeholder="admin@mmmk.in" required autofocus>
        </div>
        <div class="mb-4">
          <label class="form-label">கடவுச்சொல்</label>
          <input type="password" name="password" class="form-control"
                 placeholder="••••••••" required>
        </div>
        <button type="submit" class="btn-login">உள்நுழை</button>
      </form>
    </div>
  </div>
</div>
</body>
</html>
