<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet">
    <title>Register</title>
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css">
    <style type="text/css">
        body {
            color: #fff;
            background: #63738a;
            font-family: 'Roboto', sans-serif;
        }

        .form-control {
            height: 40px;
            box-shadow: none;
            color: #969fa4;
        }

        .form-control:focus {
            border-color: #5cb85c;
        }

        .form-control, .btn {
            border-radius: 3px;
        }

        .signup-form {
            width: 400px;
            margin: 0 auto;
            padding: 30px 0;
        }

        .signup-form h2 {
            color: #636363;
            margin: 0 0 15px;
            position: relative;
            text-align: center;
        }

        .signup-form h2:before, .signup-form h2:after {
            content: "";
            height: 2px;
            width: 30%;
            background: #d4d4d4;
            position: absolute;
            top: 50%;
            z-index: 2;
        }

        .signup-form h2:before {
            left: 0;
        }

        .signup-form h2:after {
            right: 0;
        }

        .signup-form .hint-text {
            color: #999;
            margin-bottom: 30px;
            text-align: center;
        }

        .signup-form form {
            color: #999;
            border-radius: 3px;
            margin-bottom: 15px;
            background: #f2f3f7;
            box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
            padding: 30px;
        }

        .signup-form .form-group {
            margin-bottom: 20px;
        }

        .signup-form input[type="checkbox"] {
            margin-top: 3px;
        }

        .signup-form .btn {
            font-size: 16px;
            font-weight: bold;
            min-width: 140px;
            outline: none !important;
        }

        .signup-form .row div:first-child {
            padding-right: 10px;
        }

        .signup-form .row div:last-child {
            padding-left: 10px;
        }

        .signup-form a {
            color: #fff;
            text-decoration: underline;
        }

        .signup-form a:hover {
            text-decoration: none;
        }

        .signup-form form a {
            color: #5cb85c;
            text-decoration: none;
        }

        .signup-form form a:hover {
            text-decoration: underline;
        }
        /* loader */

        #f-admin-overlay {
            opacity: 0;
            top: 0px;
            left: 0px;
            position: fixed;
            background-color: rgba(0, 0, 0);
            height: 100%;
            width: 100%;
            z-index: 9998;
            -webkit-transition: opacity 0.2s linear;
            -moz-transition: opacity 0.2s linear;
            transition: opacity 0.2s linear;
        }

        #f-admin-overlay.visible {
            opacity: 0.7;
        }

        #f-admin-overlay.hidden {
            opacity: 0;
            height: 0px;
            width: 0px;
            z-index: -10000;
        }

        #f-admin-overlay .f-loader-wrapper-outer {
            background-color: transparent;
            z-index: 9999;
            margin: auto;
            width: 100%;
            height: 100%;
            overflow: hidden;
            display: table;
            text-align: center;
            vertical-align: middle;
        }

        #f-admin-overlay .loader-wrapper-inner {
            display: table-cell;
            vertical-align: middle;
        }

        #f-admin-overlay .loader {
            margin: auto;
            font-size: 10px;
            position: relative;
            text-indent: -9999em;
            border-top: 8px solid rgba(255, 255, 255, 0.5);
            border-right: 8px solid rgba(255, 255, 255, 0.5);
            border-bottom: 8px solid rgba(255, 255, 255, 0.5);
            border-left: 8px solid #AAA;
            -webkit-transform: translateZ(0);
            -ms-transform: translateZ(0);
            transform: translateZ(0);
            -webkit-animation: pageloader 1.1s infinite linear;
            animation: pageloader 1.1s infinite linear;
        }

        #f-admin-overlay .loader, #f-admin-overlay .loader:after {
            border-radius: 50%;
            width: 50px;
            height: 50px;
        }
    </style>
</head>
<body>
<!-- start loader -->
<div id="f-admin-overlay" class="visible incoming" style="display: none">
    <div class="f-loader-wrapper-outer">
        <div class="loader-wrapper-inner">
            <div class="loader"></div>
        </div>
    </div>
</div>
<!-- end loader -->
<div class="signup-form">
    <form data-toggle="validator" autocomplete="on" class="form-styled" id="register_form">
        @csrf
        <div class="text-center"><img src="public/assets/img/logo.png" alt="logo"></div>
        <br>
        <h2>Register</h2>
        <p class="hint-text">Create your account. It's free and only takes a minute.</p>

        <div class="form-group has-feedback" style="margin-bottom: 0">
            <label for="user_name" class="control-label">Name*</label>
            <input type="text" id="user_name" maxlength="30" required data-minlength="3"
                   data-error="Please provide a user name (must be at least 3 characters)" class="form-control"><span
                class="help-block with-errors"></span>
        </div>
        <div class="form-group has-feedback" style="margin-bottom: 0">
            <label for="user_email" class="control-label">Email*</label>
            <input type="email" id="user_email" maxlength="60" required data-minlength="3" data-error="Please provide a valid email"
                   class="form-control"><span aria-hidden="true"></span><span
                class="help-block with-errors"></span>
        </div>

        <div class="form-group has-feedback" style="margin-bottom: 0">
            <label for="user_password" class="control-label">Password*</label>
            <input type="password" id="user_password" data-minlength="6" required
                   pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}"
                   data-error="Must be at least 6 characters including 1 number, 1 uppercase letter and 1 lowercase letter"
                   class="form-control"><span class="help-block with-errors"></span>
        </div>
        <div class="form-group">
            <button type="submit" class="btn btn-success btn-block" id="register_btn">Register
            </button>
        </div>
        <div class="row">
            <div class="form-group">
                <div class="alert alert-danger register_errors" style="display: none">
                    <ul></ul>
                </div>
            </div>
        </div>
    </form>

    <div class="text-center">Already have an account? <a href="{{ route('user-login') }}">Sign in</a></div>
</div>
<script>window.APP_URL = '{{ config('app.url') }}';</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="{{ asset('back_assets/assets/plugins/bootstrap-validator/validator.min.js')}}"></script>
<script src="{{ asset('assets/js/globalScript.js')}}"></script>
<script src="{{ asset('assets/js/auth/authScript.js')}}"></script>
</body>
</html>
