@extends('layouts.app')
@section('title') Reset Password @endsection
@section('styles')
    <style>

        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
            font-family: 'Mulish', sans-serif;
        }

        .main-contain {
            height: 100vh;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(2px);
        }
        .card-bg {
            background-color: #F4F4F4;
            padding: 60px 55px;
            width: 550px;
            height: 620px;
            border: 0;
        }

        .sign-title {
            color: #1C274D;
            font-size: 32px;
            font-style: normal;
            font-weight: 700;
            line-height: 24px;
        }

        .subtitle {
            color: #A0A0A0;
            font-size: 14px;
            font-style: normal;
            font-weight: 400;
            line-height: normal;
        }

        .password {
            position: relative;
        }

        #pass_view {
            position: absolute;
            right: 15px;
            top: 43px;
        }

        .login-btn {
            display: flex;
            height: 48px;
            padding: 14px 16px;
            justify-content: center;
            align-items: center;
            gap: 10px;
            align-self: stretch;
            border-radius: 4px;
            border: none;
            background: #009A75;
            color: #F4F4F4;
        }

        .label-font-size {
            color: #1C274D;
            font-size: 14px;
            font-weight: 600;
            line-height: 21px;
        }

        input::placeholder {
            font-size: 0.875rem;
        }

        input[type="email"], input[type="password"], input[type="text"] {
            background: transparent;
            padding: 10px 20px;
        }

        input:-webkit-autofill,
        input:-webkit-autofill:hover,
        input:-webkit-autofill:focus,
        input:-webkit-autofill:active {
            transition: background-color 5000s ease-in-out 0s;
            -webkit-text-fill-color: #1c274d !important;
        }

        .login-logo {
            height: 6.89rem;
        }
    </style>
@endsection
@section('content')
    <div class="row main-contain">
        <div class="card card-bg">
            <img class="login-logo" src="{{ asset('assets/icons/logo-uss.png') }}" alt="" srcset="">
            <hr>
            <div class="card-body">
                <h5 class="sign-title"> {{ __('Reset Password') }}</h5>
                <p class="subtitle">Reset Password with {{env('APP_NAME')}}.</p>
                <form method="POST" action="{{ route('password.email') }}"  class="form-horizontal">
                    @csrf
                    @if(session('error'))
                        <div class="alert alert-danger">
                            {{ session('error') }}
                        </div>
                    @endif
                    <div class="mb-3 mt-4">
                        <label for="useremail" class="form-label">{{ __('E-Mail Address') }}</label>
                        <input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" autocomplete="email" autofocus>
                        @error('email')
                        <span class="invalid-feedback" role="alert">
                                            <strong>{{ $message }}</strong>
                                        </span>
                        @enderror
                    </div>
                    <div class="text-center w-100 mt-3">
                        <button class="login-btn w-100 mt-3" type="submit"> {{ __('Send Password Reset Link') }}</button>
                    </div>
                </form>
                <div class="mt-5 text-center">
                    <p>Remember It ? <a href="{{route('login')}}" class="fw-medium text-primary"> Sign In here</a> </p>
                    <p>&copy; <script>document.write(new Date().getFullYear())</script> {{env('APP_NAME')}}. Design & Developed by United Software Solutions</p>
                </div>
            </div>
        </div>
    </div>

@endsection
