File size: 2,825 Bytes
b9a69cb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<html lang="pt-br">
  <link

    rel="icon"

    href="https://www.google.com/s2/favicons?domain=inetum.com/en"

    type="image/x-icon"

  />
  <link rel="preconnect" href="https://fonts.googleapis.com" />
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
  <link

    href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"

    rel="stylesheet"

  />
  <link rel="stylesheet" href="../static/login.css" />

  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Portal RH</title>
  </head>

  <body>
    <div class="background"></div>
    <div class="card">
      <img

        class="logo"

        src="{{ url_for('static', filename='img/logo-inetum_.svg') }}"

      />

      <form method="post" id="formUserAuth" action="/login" class="form">
        <span class="title-login">Portal de administração de candidatos</span>
        <input type="email" name="email" placeholder="Email" />
        <input

          type="password"

          name="password"

          placeholder="Senha"

          {%

          if

          error_message

          %}class="error"

          {%

          endif

          %}

        />
        <div class="remember-field">
          <label class="remember-label" for="remember">Lembrar de mim</label>
          <div class="toggle-switch">
            <input class="toggle-input" id="toggle" type="checkbox" />
            <label class="toggle-label" for="toggle"></label>
            <input

              type="hidden"

              id="remember_me_hidden"

              name="remember_me"

              value="0"

            />
          </div>
        </div>
        <button id="btnLogin">Entrar</button>
      </form>
    </div>
  </body>
  <script

    src="https://code.jquery.com/jquery-3.7.1.min.js"

    integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo="

    crossorigin="anonymous"

  ></script>
  <script>

    $(document).ready(function () {

      $("#toggle").change(function () {

        if ($(this).prop("checked")) {

          $("#remember_me_hidden").val("1"); // Se marcado, define o valor como '1'

        } else {

          $("#remember_me_hidden").val("0"); // Se desmarcado, define o valor como '0'

        }

      });

    });

  </script>
  <script>

    document.addEventListener("DOMContentLoaded", function () {

      var errorInputs = document.querySelectorAll("input.error");

      errorInputs.forEach(function (input) {

        setTimeout(function () {

          input.classList.add("fade-out");

        }, 1000);

      });

    });

  </script>
</html>