/* google fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('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');

* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}

body {
 background: url('bg.jpg') center / cover;
 display: flex;
 align-items: center;
 justify-content: center;
 min-height: 100dvh;
 overflow: hidden;
}

/* css variables */
:root {
 /* colors */
 --c-primary: hsl(212, 100%, 50%);
 --c-secondary: hsl(212, 100%, 60%);
 --c-accent: hsl(212, 10%, 80%);
 --c-background: rgba(255, 255, 255, 0.9);
 /* fonts */
 --ff-ms: "Montserrat", sans-serif;
 --ff-pp: "Poppins", sans-serif;
 /* font sizing */
 --ff-heading: 1.5rem;
 --ff-subheading: 1.25rem;
 --ff-body: 1rem;
 --ff-small: 0.875rem;
}

/* login form */
.wrapper {
 width: 100%;
 max-width: 350px;
 height: auto;
 margin: 0 auto;
 padding: 40px;
 backdrop-filter: blur(8px);
 border-radius: 16px;
 border: 2px solid var(--c-accent);
}

.wrapper-form {
 display: flex;
 flex-direction: column;
 gap: 1rem;
}

.form-logo h2 {
 text-align: center;
 font-family: var(--ff-ms);
 font-size: var(--ff-heading);
 margin-bottom: 24px;
 color: #fff;
}

.form-logo span {
 color: var(--c-secondary);
}

.form-input {
 display: flex;
 flex-direction: column;
 gap: 0.5rem;
}

.input-grp label {
 display: block;
 font-family: var(--ff-pp);
 font-size: var(--ff-body);
 font-weight: 500;
 margin-bottom: 4px;
 color: whitesmoke;
}

.grp-input {
 position: relative;
}

.grp-input input {
 width: 100%;
 height: 32px;
 padding: 0 32px;
 border: none;
 outline: 2px solid var(--c-accent);
 border-radius: 4px;
}

.grp-input i {
 position: absolute;
 top: 50%;
 transform: translateY(-50%);
}

.grp-input #at-email {
 left: 8px;
}

.grp-input #lock {
 left: 8px;
}

.grp-input #toggleEye {
 right: 8px;
}

.input-text {
 display: flex;
 align-items: center;
 justify-content: space-between;
 margin-top: 8px;
}

.text-checkbox {
 display: flex;
 align-items: center;
 gap: 0.5rem;
}

.text-checkbox label {
 font-family: var(--ff-pp);
 font-size: var(--ff-small);
 font-weight: 400;
 color: whitesmoke;
}

.text-forgot a {
 text-decoration: none;
 font-family: var(--ff-pp);
 font-size: var(--ff-small);
 font-weight: 400;
 color: var(--c-secondary);
 cursor: pointer;
}

.text-forgot a:hover,
.text-forgot a:active {
 text-decoration: underline;
}

.form-cta {
 width: 100%;
}

.form-cta button {
 width: 100%;
 height: 32px;
 border: none;
 outline: none;
 background-color: var(--c-secondary);
 border-radius: 4px;
 color: whitesmoke;
 cursor: pointer;
 transition: .5s ease;
}

.form-cta button:hover,
.form-cta button:active {
 background-color: var(--c-primary);
}

.cta-text {
 margin-top: 8px;
}

.cta-text p {
 text-align: center;
 font-family: var(--ff-pp);
 font-size: var(--ff-small);
 font-weight: 400;
 color: whitesmoke;
}

.cta-text .sign-up {
 text-decoration: none;
 font-family: var(--ff-pp);
 font-size: var(--ff-small);
 font-weight: 400;
 color: var(--c-secondary);
 cursor: pointer;
}

.cta-text .sign-up:hover,
.cta-text .sign-up:active {
 text-decoration: underline;
}

.form-divider {
 display: flex;
 align-items: center;
 gap: 0.5rem;
}

.form-divider span {
 width: 100%;
 height: 2px;
 background-color: var(--c-accent);
 flex: 1;
}

.form-divider p {
 font-family: var(--ff-pp);
 font-size: var(--ff-small);
 font-weight: 400;
 color: whitesmoke;
}

.form-social {
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 1rem;
}

.form-social button {
 width: 200px;
 height: 32px;
 border: none;
 outline: none;
 background: transparent;
 border-radius: 4px;
 cursor: pointer;
 transition: all .5s ease;
}

.form-social .cta-google {
 background-color: var(--c-secondary);
 color: whitesmoke;
}

.form-social .cta-google:hover,
.form-social .cta-google:active {
 background-color: var(--c-primary);
}

.form-social .cta-apple {
 outline: 2px solid var(--c-accent);
 color: whitesmoke;
}

.form-social .cta-apple:hover,
.form-social .cta-apple:active {
 background-color: var(--c-accent);
}

/* for small devices */
@media (max-width: 420px) {
 .wrapper {
  width: 90%;
  padding: 32px 24px;
 }
 
 .grp-input input,
 .form-cta button,
 .form-social button {
  height: 40px;
 }
}