flask-web-app / static /login.css
samuel-moreira's picture
Upload 71 files
b9a69cb verified
* {
box-sizing: border-box;
}
body {
display: grid;
place-items: center;
gap: 50px;
margin: 0;
height: 100vh;
padding: 0 32px;
background: #eff9ff;
font-family: "Poppins";
}
@media (width >=500px) {
body {
padding: 0;
}
}
.background {
position: fixed;
top: -50vmin;
left: -50vmin;
width: 100vmin;
height: 100vmin;
border-radius: 47% 53% 61% 39% / 45% 51% 49% 55%;
background: #00AA9B;
}
.background::after {
content: "";
position: inherit;
right: -50vmin;
bottom: -55vmin;
width: inherit;
height: inherit;
border-radius: inherit;
background: #232d4b;
}
.card {
overflow: hidden;
top: 124px;
position: absolute;
z-index: 3;
width: 94%;
margin: 0 20px;
padding: 170px 30px 25px;
border-radius: 24px;
background: #ffffff;
text-align: center;
box-shadow: 0 100px 100px rgb(0 0 0 / 10%);
}
.card::before {
content: "";
position: absolute;
top: -880px;
left: 50%;
translate: -50% 0;
width: 1000px;
height: 1000px;
border-radius: 50%;
background: #005573;
}
@media (width >=500px) {
.card {
margin: 0;
width: 360px;
}
}
.card .logo {
position: absolute;
top: 10px;
left: 50%;
translate: -50% 0;
width: 280px;
}
.card>h2 {
font-size: 22px;
font-weight: 400;
margin: 0 0 38px;
color: rgb(0 0 0 / 38%);
}
.form {
margin: 0 0 44px;
display: grid;
gap: 12px;
justify-content: space-around;
}
.form :is(input, button) {
width: 100%;
height: 56px;
border-radius: 28px;
font-size: 16px;
font-family: inherit;
}
.form>input {
border: 0;
padding: 0 24px;
color: #222222;
background: #ededed;
}
.form>input::placeholder {
color: rgb(0 0 0 / 28%);
}
.form>button {
border: 0;
color: #f9f9f9;
background: #005573;
display: grid;
place-items: center;
font-weight: 500;
cursor: pointer;
margin-top: 20px
}
.card>footer {
color: #a1a1a1;
}
.card>footer>a {
color: #216ce7;
}
.title-login {
white-space: nowrap;
padding-bottom: 20px;
}
input.error {
border: 2px solid #f04641;
}
input.error.fade-out {
transition: border-color 1s ease;
/* Adiciona uma transição suave */
border-color: transparent;
/* Define a cor da borda como transparente */
}
/* Genel stil */
.toggle-switch {
position: relative;
display: inline-block;
width: 40px;
height: 24px;
margin: 10px;
}
/* Giriş stil */
.toggle-switch .toggle-input {
display: none;
}
/* Anahtarın stilinin etrafındaki etiketin stil */
.toggle-switch .toggle-label {
position: absolute;
top: 0;
left: 0;
width: 40px;
height: 24px;
background-color: #005573;
border-radius: 34px;
cursor: pointer;
transition: background-color 0.3s;
}
/* Anahtarın yuvarlak kısmının stil */
.toggle-switch .toggle-label::before {
content: "";
position: absolute;
width: 20px;
height: 20px;
border-radius: 50%;
top: 2px;
left: 2px;
background-color: #fff;
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
transition: transform 0.3s;
}
/* Anahtarın etkin hale gelmesindeki stil değişiklikleri */
.toggle-switch .toggle-input:checked+.toggle-label {
background-color: #00AA9B;
}
.toggle-switch .toggle-input:checked+.toggle-label::before {
transform: translateX(16px);
}
/* Light tema */
.toggle-switch.light .toggle-label {
background-color: #BEBEBE;
}
.toggle-switch.light .toggle-input:checked+.toggle-label {
background-color: #9B9B9B;
}
.toggle-switch.light .toggle-input:checked+.toggle-label::before {
transform: translateX(6px);
}
/* Dark tema */
.toggle-switch.dark .toggle-label {
background-color: #4B4B4B;
}
.toggle-switch.dark .toggle-input:checked+.toggle-label {
background-color: #717171;
}
.toggle-switch.dark .toggle-input:checked+.toggle-label::before {
transform: translateX(16px);
}
.remember-field {
display: flex;
align-items: center;
justify-content: center;
}
.remember-label {
font-weight: 300;
}