<!DOCTYPE html>
<html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- CSRF Token -->
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">

    <title><?php echo e(config('app.name', 'Laravel')); ?> - Two-Factor Authentication</title>

    <!-- Fonts -->
    <link rel="dns-prefetch" href="//fonts.gstatic.com">
    <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="https://use.typekit.net/yhq3afd.css">

    <!-- Styles -->
    <link href="<?php echo e(asset('css/app.css')); ?>" rel="stylesheet">

    <style>
        body {
            margin: 0;
            font-family: 'proxima-nova', 'sans-serif';
        }

        .login-page {
            background-color: #001633;
            width: 100%;
            min-height: 100vh;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 32px 0;
        }

        .login-background {
            position: fixed;
            bottom: 0;
            right: 0;
            width: 100vw;
            height: 100vh;
            z-index: 1;
            background-image: url('/assets/img/login.jpg');
            background-repeat: no-repeat;
            background-size: cover;
            background-position: bottom right;
        }

        .login-form-holder {
            position: relative;
            display: flex;
            width: calc(100% - 5.333vw);
            min-height: 400px;
            padding: 32px;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 16px;
            border-radius: 8px;
            border: 1px solid #F2F3F5;
            background: #fff;
            z-index: 2;
            max-width: 500px;
            color: #002E6D;
        }

        .login-form-holder h2 {
            color: #001633;
            font-size: 24px;
            font-weight: 600;
            margin: 0;
        }

        .login-form-holder p.subtitle {
            color: #001633;
            font-size: 14px;
            opacity: 0.7;
            margin: 0;
            text-align: center;
        }

        .login-form {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

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

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #001633;
            opacity: 0.6;
            font-weight: 500;
        }

        .form-control {
            width: 100%;
            padding: 12px;
            border: 1px solid #CCD0D6;
            border-radius: 4px;
            font-size: 20px;
            letter-spacing: 0.3em;
            text-align: center;
            box-sizing: border-box;
            min-height: 56px;
        }

        .form-control:focus {
            outline: none;
            border-color: #F5A800;
            box-shadow: 0 0 0 2px rgba(245, 168, 0, 0.2);
        }

        .form-control.is-invalid {
            border-color: #D11F2A;
            background-image: none;
        }

        .invalid-feedback {
            color: #D11F2A;
            font-size: 14px;
            margin-top: 4px;
            display: block;
        }

        .form-check-group {
            display: flex;
            align-items: center;
            column-gap: 16px;
            margin-bottom: 32px;
            padding-top: 16px;
        }

        .form-check {
            display: flex;
            align-items: center;
            gap: 8px;
            padding-left: 35px;
        }

        .form-check-input {
            margin: 0;
            left: 0;
            width: 26px;
            height: 26px;
            flex-shrink: 0;
        }

        .form-check-label {
            color: #001633;
            font-size: 14px;
            margin: 0;
            opacity: 0.6;
        }

        .btn {
            display: flex;
            padding: 12px 20px;
            justify-content: center;
            align-items: center;
            gap: 8px;
            width: 100%;
            border-radius: 2px;
            border: 1px solid #F5A800;
            background-color: #fff;
            color: #001633;
            font-weight: 500;
            font-size: 16px;
            cursor: pointer;
            text-decoration: none;
            text-align: center;
            box-sizing: border-box;
            transition: background-color 0.2s ease;
        }

        .btn:hover {
            background-color: #F5A800;
            text-decoration: none;
        }

        .btn:focus {
            outline: none;
            box-shadow: 0 0 0 2px rgba(245, 168, 0, 0.3);
        }

        .btn-link {
            background: none;
            border: none;
            color: #001633;
            font-size: 14px;
            text-decoration: none;
            padding: 4px 0;
            width: auto;
            font-weight: 600;
            cursor: pointer;
        }

        .btn-link:hover {
            color: #33455C;
        }

        .button-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
            align-items: center;
            width: 100%;
        }

        .help-row {
            display: flex;
            justify-content: center;
            align-items: center;
            color: #001633;
            font-weight: 500;
            width: 100%;
        }

        .help-text {
            width: 100%;
            font-size: 12px;
            font-weight: 400;
            text-align: left;
        }

        .help-text a {
            color: #001633;
            font-size: 12px;
            display: block;
            font-weight: 600;
        }

        /* Responsive behavior */
        @media (max-width: 768px) {
            .login-page {
                align-items: flex-start;
                justify-content: flex-start;
                padding: 20px;
            }

            .login-form-holder {
                width: calc(100% - 40px);
                max-width: none;
                margin-top: 50px;
            }
        }

        @media (min-width: 768px) {
            .login-form-holder {
                position: fixed;
                top: 50%;
                left: 5%;
                transform: translateY(-50%);
                width: 500px;
                max-width: 500px;
            }
        }
    </style>
</head>
<body>
    <div class="login-page">
        <div class="login-background"></div>

        <div class="login-form-holder">
            <h2><?php echo e(__('Two-Factor Authentication')); ?></h2>
            <p class="subtitle"><?php echo e(trans('auth.two_factor_enter_code')); ?></p>

            <div class="login-form">
                <form method="POST" action="<?php echo e(route('two_factor.verify')); ?>">
                    <?php echo csrf_field(); ?>

                    <div class="form-group">
                        <label for="code"><?php echo e(__('Verification Code')); ?></label>
                        <input
                            id="code"
                            type="text"
                            inputmode="numeric"
                            class="form-control <?php $__errorArgs = ['code'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                            name="code"
                            maxlength="6"
                            autocomplete="one-time-code"
                            autofocus
                        >
                        <?php $__errorArgs = ['code'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <span class="invalid-feedback" role="alert">
                                <strong><?php echo e($message); ?></strong>
                            </span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>

                    <div class="form-check-group">
                        <div class="form-check">
                            <input class="form-check-input" type="checkbox" name="trust_device" id="trust_device" value="1">
                            <label class="form-check-label" for="trust_device">
                                <?php echo e(trans('auth.two_factor_trust_device', ['days' => config('auth.two_factor_remember_days', 60)])); ?>

                            </label>
                        </div>
                    </div>

                    <div class="button-group">
                        <button type="submit" class="btn">
                            <?php echo e(__('Verify')); ?>

                        </button>
                    </div>
                </form>

                <div class="help-row">
                    <span class="help-text">
                        <?php echo e(__('Do you need help? Please contact')); ?> <a href="mailto:website-admin@energytraderseurope.org">website-admin@energytraderseurope.org</a>
                    </span>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
<?php /**PATH /var/www/html/resources/views/auth/two-factor.blade.php ENDPATH**/ ?>