<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Sign in — TechCorp Manager</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="{{ asset('css/techcorp.css') }}">
</head>
<body class="tc-body">
<div class="tc-login-wrap">
    <div class="tc-login-box">
        <h1>TechCorp</h1>
        <p class="sub">IT company management</p>
        <form method="post" action="{{ url('/login') }}">
            @csrf
            <div class="tc-field">
                <label for="email">Email</label>
                <input id="email" type="email" name="email" value="{{ old('email') }}" required autofocus autocomplete="username">
            </div>
            <div class="tc-field">
                <label for="password">Password</label>
                <input id="password" type="password" name="password" required autocomplete="current-password">
            </div>
            <div class="tc-field" style="display:flex;align-items:center;gap:8px;">
                <input type="checkbox" name="remember" id="remember" value="1">
                <label for="remember" style="margin:0;font-weight:400;">Remember me</label>
            </div>
            @if ($errors->any())
                <p class="tc-error">{{ $errors->first() }}</p>
            @endif
            <button type="submit" class="tc-btn">Sign in</button>
        </form>
    </div>
</div>
</body>
</html>
