<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>{Lang::T('Login')} - {$_c['CompanyName']}</title>
    <link rel="shortcut icon" href="ui/ui/images/logo.png" type="image/x-icon" />
    <link rel="stylesheet" href="ui/ui/styles/bootstrap.min.css">
    <link rel="stylesheet" href="ui/ui/styles/modern-AdminLTE.min.css">
    <link rel="stylesheet" href="ui/ui/styles/login.css"> <!-- Custom CSS -->
    <style>
        body {
            margin: 0;
            color: #edf3ff;
            background: url(https://therichpost.com/wp-content/uploads/2021/03/material-design-4k-2048x1152-1.jpg) fixed;
            background-size: cover;
            font: 600 16px/18px 'Open Sans', sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100vh; /* Center vertically */
        }

        .container {
            width: 90%;
            max-width: 510px;
            padding: 30px;
            background: rgba(0, 0, 0, 0.7); /* Darker overlay for better contrast */
            box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15), 0 20px 50px rgba(0, 0, 0, 0.3);
            border-radius: 15px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .container:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 25px 55px rgba(0, 0, 0, 0.35);
        }

        h1 {
            text-align: center;
            color: #fff;
            margin-bottom: 20px;
            font-size: 24px; /* Adjusted font size */
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-input {
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 25px;
            background: rgba(255, 255, 255, .2);
            color: #fff;
            font-size: 16px;
            box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.1);
            box-sizing: border-box; /* Include padding in width calculation */
        }

        .form-input:focus {
            outline: none;
            background: rgba(255, 255, 255, .3);
        }

        .login-button {
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 25px;
            background: #1161ee;
            color: white;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.2s ease, transform 0.2s ease;
        }

        .login-button:hover {
            background: #0a4ba1;
            transform: scale(1.05);
        }

        .notification {
            margin: 10px 0;
            color: #ff4d4d; /* Error message color */
            text-align: center;
        }

        @media (max-width: 768px) {
            .container {
                padding: 20px; /* Reduced padding for small screens */
            }

            h1 {
                font-size: 20px; /* Slightly smaller font size */
            }
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="login-logo">
            <h1>{$_c['CompanyName']}</h1>
        </div>
        <p class="login-box-msg">{Lang::T('Enter Admin Area')}</p>
        {if isset($notify)}
            <div class="notification">{$notify}</div>
        {/if}
        <form action="{$_url}admin/post" method="post">
            <input type="hidden" name="csrf_token" value="{$csrf_token}">
            <div class="form-group">
                <input type="text" required class="form-input" name="username" placeholder="{Lang::T('Username')}">
            </div>
            <div class="form-group">
                <input type="password" required class="form-input" name="password" placeholder="{Lang::T('Password')}">
            </div>
            <button type="submit" class="login-button">{Lang::T('Login')}</button>
        </form>
    </div>
</body>

</html>
