:root {

    /* Colors in hsl */
    --text:                 hsl(0,   0%,   20%);
    --shadow:               hsl(0, 0%, 30%);
    --input-hover:          hsl(0, 0%, 74%);
    --shadow-contrast:      hsl(0, 0%, 88%); 
    --text-contrast:        hsl(0,   0%,   95%); 
    --background:           hsl(0,   0%,   99%);
    --primary:              hsl(223, 79%,  45%);
    --primary-opac:         hsla(223, 79%,  45%, 0.1);
    --primary-hover:        hsl(233, 79%,  56%); 
    --success:              hsl(104, 89%,  28%); 
    --error:                hsl(0,   79%,  63%); 
}

[data-theme="dark"] {
    --text:                 hsl(0,   0%,   95%);
    --gray4-hsl:            hsl(0,   0%,   51%);
    --shadow-contrast:      hsl(0, 0%, 31%);
    --text-contrast:        hsl(0,   0%,   20%);
    --background:           hsl(0,   0%,   20%);
    --primary:              hsl(187, 100%, 76%); 
    --primary-opac:         hsla(187, 100%, 76%, 0.1);
    --primary-hover:        hsl(187, 79%,  86%);
    --success:              hsl(117, 85%,  76%);
    --error:                hsl(0,   79%,  63%);
}

*, html {
    font-family: 'Roboto', sans-serif;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    color: var(--text);
    background-color: var(--background);
}

h1 {
    font-size: 1.5rem;
    font-weight: 800;
}

.logins-container {
    display: flex;
    justify-content: center;
}

.login {
    margin: 3rem;
    min-width: 23rem;
    max-width: 25rem;
    background: var(--background);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    border-radius: 0.75rem;
    box-shadow: rgba(0, 0, 0, 0.36) 5px 3px 6px, 
                rgba(0, 0, 0, 0.43) 0px 3px 6px;
}

h2 {
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
}

button:focus,
button:active,
input:focus,
input:active {
    border-color: transparent;
    outline: none;
}

.input{
    border-style: hidden;
    margin-top: 0.75rem;
}

#email {
    width: 100%;
}

.login-form {
    width: 100%;
}

.login-form input {
    border-radius: 5px;
    padding: 10px 5px;
    border: 1px solid var(--text);
    margin-top: 5px;
    filter: none;
    transition: all 0.1s ease-in-out;
}

/* Styling for standard input elements with border */

.login-form .input-standard:hover {
    border-color: var(--input-hover);
}

.login-form .input-standard:not(:placeholder-shown) {
    border-color: var(--primary);
}

.login-form .input-standard:focus,
.login-form .input-standard:active {
    border-color: var(--primary);
    filter: drop-shadow(0px 0px 3px var(--primary));
}

.login-form .validation:not(:focus):invalid:not(:placeholder-shown) {
    border: 1px solid var(--error);
    filter: drop-shadow(0px 0px 3px var(--error));
}

.login-form .validation:not(:focus):not(:invalid):not(:placeholder-shown) {
    border: 1px solid var(--success);
    box-sizing: border-box;
    filter: drop-shadow(0px 0px 3px var(--success))
}

.login-form label {
    font-size: 1.1rem;
}

.btn {
    background-color: var(--primary);
    color: var(--text-contrast);
    margin-top: 2rem;
    border: none;
    border-radius: 5px;
    height: 40px;
    width: 100%;
    transition: all 0.1s ease-in-out;
}

.btn:hover:not(.disabled) {
    background-color: var(--primary-hover);
}

.btn:active:not(.disabled) {
    box-shadow: inset 0px 4px 8px var(--color-shadow);
}

.btn:focus {
    border: 3px solid var(--text);
}

.password-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#password {
    width: 100%;
    flex: 3;
}

.btn-secondary,
.btn-secondary:focus {
    background-color: transparent;
    border: 1px solid var(--primary);
    border-radius: 5px;
    color: var(--text);
    height: 40px;
    font-size: 0.8rem;
    margin-left: 15px;
    margin-top: 5px;
    flex: 1;
    transition: all 0.1s ease-in-out;
}

.btn-secondary:hover:not(.disabled) {
    filter: drop-shadow(2px 3px 1px var(--shadow-contrast));
}

.btn-secondary:active:not(.disabled) {
    background-color: var(--primary-opac);
}

.notification {
    font-size: 0.8rem;
    margin-top: 2px;
}

.notification:empty:before {
    content: ' ';
    white-space: pre;
}



/* Styling for login notification message */

.login-validity-notification {
    background-color: var(--error);
    color: var(--background);
    display: none;
    align-items: center;
    font-size: 0.875rem;
    border-radius: 5px;
}

.login-validity-notification i {
    background-color: inherit;
    margin: 1rem;
    font-size: 2rem;
    color: inherit;
}

.login-validity-notification p {
    background-color: inherit;
    color: inherit;
    max-width: 220px;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
}



/* Styling for password forgot */

#forgot-password {
    font-size: 0.68rem;
    color: var(--primary);
}

#forgot-password:hover {
    font-size: 0.68rem;
    color: var(--primary-hover);
}




.info {
    max-width: 25rem;
    margin: 0 auto;
    padding: 2rem;
}

.info  p:first-child {
    margin-bottom: 5px;
}

.disabled {
    opacity: 0.4;
}






.email-validity-notification {
    color: var(--error);
}

/* Styling toggle switch */
.theme-switch-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  margin-top: 1rem;
}

.theme-switch {
  display: inline-block;
  height: 34px;
  position: relative;
  width: 60px;
}

.theme-switch input {
  display:none;
}

.slider {
  background-color: var(--primary);
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
}

.slider:before {
  background-color: var(--text-contrast);
  bottom: 4px;
  content: "";
  height: 26px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 26px;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

em {
  font-size: 12px;
  padding-left: 4px;
  text-decoration: none;
  color: var(--text);
  font-family: "Poppins Regular", fallback, sans-serif;
}