:root {

    /* Colors in hsl */
    --text:                 hsl(0,   0%,   20%);
    --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%);
    --warning:              hsl(36,100%,48%,1);
}

[data-theme="dark"] {
    --text:                 hsl(0,   0%,   95%);
    --input-hover:          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%);
    --warning:              hsl(36,85%,62%,1);
}

*, 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;
}

.register {
    margin: 3rem;
    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%;
}

.register-form {
    width: 100%;
}

.register-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;

}

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

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



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

.register-form .validation:not(:focus).invalid:not(:placeholder-shown) {
    border: 1px solid var(--red);
    filter: drop-shadow(2px 2px 3px rgba(235, 87, 87, 0.53));
}

.register-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))
}

.register-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 rgba(0, 0, 0, 0.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);
}




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

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

.optional {
    font-size: 0.8rem;
}

.disabled {
    opacity: 0.4;
}

.password-input {
    width: 100%;
    flex: 3;
}

.notification {
    color: var(--red);
    font-size: 0.8rem;
    margin-top: 2px;
}

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

.strength-notification {
    color: var(--text);
}


/* Strenght Lines */
.strengthlines-container {
    margin-bottom: 4px;
}

.strength-lines{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    bottom: 2px;
    left: 0;
    right: 0 + size(calc(100% - 50px), 6px);
    margin-top: 2px;
}

.line, .line-underline {
    border: none;
    height: 6px;
    width: 95%;
    border-radius: 2px;
    transition: background-color 0.25s ease-in;
}

.bg-default {
    color: var(--text);
}
	
.bg-red {
    color:var(--red);
}
	
.bg-orange {
    color: var(--warning);
}
	
.bg-green {
    color: var(--success);
}

/* Classes for strength lines */

.line-bg-default {
    background-color: var(--input-hover);
}
	
.line-bg-red {
    background-color:var(--red);
}
	
.line-bg-orange {
    background-color: var(--warning);
}
	
.line-bg-green {
    background-color: var(--successhsl);
}


/* Criterias */

.pw-criterias {
    font-size: 0.7rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.pw-criterias p:not(:last-child) {
    margin-right: 7.5px;
}

.criteria-icon {
    margin-right: 2px;
    font-size: 10px;
}


/* Toggle Switch */

/* 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;
  }