@extends('layouts.app')
@section('title') Change 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 class="needs-validation" method="POST" action="{{ route('password.update') }}">
                    @csrf
                    <input type="hidden" name="token" value="{{ $token }}">
                    <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="{{ $email ?? old('email') }}" required autocomplete="email" autofocus>
                        @error('email')
                        <span class="invalid-feedback" role="alert">
                                            <strong>{{ $message }}</strong>
                                        </span>
                        @enderror
                    </div>

                    <div class="mb-3">
                        <label for="username" class="form-label">{{ __('Password') }}</label>
                        <input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="new-password">

                        @error('password')
                        <span class="invalid-feedback" role="alert">
                                            <strong>{{ $message }}</strong>
                                        </span>
                        @enderror
                    </div>

                    <div class="mb-3">
                        <label for="userpassword" class="form-label">{{ __('Confirm Password') }}</label>
                        <input id="password-confirm" type="password" class="form-control" name="password_confirmation" required autocomplete="new-password">
                    </div>

                    <div class="text-center w-100 mt-3">
                        <button class="login-btn w-100 mt-3" type="submit"> {{ __('Reset Password') }}</button>
                    </div>
                </form>

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


{{-- <div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">{{ __('Reset Password') }}</div>

                <div class="card-body">
                    <form method="POST" action="{{ route('password.update') }}">
                        @csrf

                        <input type="hidden" name="token" value="{{ $token }}">

                        <div class="form-group row">
                            <label for="email" class="col-md-4 col-form-label text-md-right">{{ __('E-Mail Address') }}</label>

                            <div class="col-md-6">
                                <input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ $email ?? old('email') }}" required autocomplete="email" autofocus>

                                @error('email')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>

                        <div class="form-group row">
                            <label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Password') }}</label>

                            <div class="col-md-6">
                                <input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="new-password">

                                @error('password')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>

                        <div class="form-group row">
                            <label for="password-confirm" class="col-md-4 col-form-label text-md-right">{{ __('Confirm Password') }}</label>

                            <div class="col-md-6">
                                <input id="password-confirm" type="password" class="form-control" name="password_confirmation" required autocomplete="new-password">
                            </div>
                        </div>

                        <div class="form-group row mb-0">
                            <div class="col-md-6 offset-md-4">
                                <button type="submit" class="btn btn-primary">
                                    {{ __('Reset Password') }}
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div> --}}
@endsection
