|
| 1 | +@using ApiIntegrationMvc.Areas.Account.Models |
| 2 | +@model LoginViewModel |
| 3 | +@{ |
| 4 | + ViewData["Title"] = "Login"; |
| 5 | +} |
| 6 | + |
| 7 | +< link href= "https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel= "stylesheet" /> |
| 8 | +<style> |
| 9 | + /* Page-specific centering */ |
| 10 | + .login-container { |
| 11 | + height: 100vh; |
| 12 | + display: flex; |
| 13 | + justify-content: center; /* horizontal */ |
| 14 | + align-items: center; /* vertical */ |
| 15 | + |
| 16 | + } |
| 17 | +
|
| 18 | + body { |
| 19 | + margin-bottom: 60px; |
| 20 | + background: linear-gradient(135deg, #f8f9fa, #e9ecef); |
| 21 | + } |
| 22 | +
|
| 23 | + .login-card { |
| 24 | + width: 100%; |
| 25 | + max-width: 400px; |
| 26 | + background: #fff; |
| 27 | + border-radius: 12px; |
| 28 | + box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); |
| 29 | + padding: 2rem; |
| 30 | + } |
| 31 | +
|
| 32 | + .login-card h2 { |
| 33 | + font-weight: 600; |
| 34 | + color: #2c3e50; |
| 35 | + } |
| 36 | + |
| 37 | + .alert { |
| 38 | + border-radius: 8px; |
| 39 | + margin-top: 1rem; |
| 40 | + } |
| 41 | +</style> |
| 42 | + |
| 43 | +<div class="login-container"> |
| 44 | + <div class="login-card text-center"> |
| 45 | + <h2 class="mb-4">🔗 Integration Portal</h2> |
| 46 | + |
| 47 | + <form asp-action="Index" asp-controller="Login" method="post" novalidate> |
| 48 | + @Html.AntiForgeryToken() |
| 49 | + |
| 50 | + <div asp-validation-summary="ModelOnly" class="alert alert-danger text-start"></div> |
| 51 | + |
| 52 | + <!-- Username with icon --> |
| 53 | + <div class="input-group mb-3"> |
| 54 | + <span class="input-group-text"><i class="bi bi-person"></i></span> |
| 55 | + <input asp-for="Username" class="form-control" placeholder="Username" /> |
| 56 | + </div> |
| 57 | + <span asp-validation-for="Username" class="text-danger"></span> |
| 58 | + |
| 59 | + <!-- Password with icon --> |
| 60 | + <div class="input-group mb-4"> |
| 61 | + <span class="input-group-text"><i class="bi bi-lock"></i></span> |
| 62 | + <input asp-for="Password" class="form-control" placeholder="Password" /> |
| 63 | + </div> |
| 64 | + <span asp-validation-for="Password" class="text-danger"></span> |
| 65 | + |
| 66 | + <button type="submit" class="btn btn-primary w-100"> |
| 67 | + <i class="bi bi-box-arrow-in-right"></i> Login |
| 68 | + </button> |
| 69 | + </form> |
| 70 | + |
| 71 | + @if (ViewBag.Error != null) |
| 72 | + { |
| 73 | + <div class="alert alert-danger mt-3">@ViewBag.Error</div> |
| 74 | + } |
| 75 | + </div> |
| 76 | +</div> |
| 77 | + |
| 78 | + |
0 commit comments