
:root {
    --intradiem-primary-color: #2db56e;
}

body {
    padding: 0;
    margin: 0;
}

.basic-wrapper {
    width: 100%;
    height: 100vh;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-wrapper {
    box-sizing: border-box;
    padding: 18px 18px 5px 18px;
    background-color: #fff;
    box-shadow: 0 2px 4px 0 rgb(0 0 0 / 50%);
}

.update-password-wrapper .header-wrapper {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 10px 10px 6px 10px;
}

.logo {
    max-height: 50px;
    margin-bottom: 50px;
}

h1 {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: .005em;
}

.update-password-wrapper h1 {
    display: inline;
    margin: 0 16px;
    font-size: 20px;
}

.basic-form-wrapper {
    height: 600px;
    width: 400px;
    margin: 0 auto;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 7px 8px -4px rgb(0 0 0 / 20%), 0 13px 19px 2px rgb(0 0 0 / 14%), 0 5px 24px 4px rgb(0 0 0 / 12%);
}

.basic-form {
    flex: 1;
    padding: 30px 16px 6px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
   
}

.basic-form-password {
    flex: 1;
    padding: 30px 16px 16px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/**
 * inputs
 */
.form-field {
    position: relative;
    font-family: Roboto, "Helvetica Neue", sans-serif;
    margin-bottom: 40px;
}

input {
    background: none;
    color: #000;
    font-size: 16px;
    padding: 7px 7px 7px 0;
    display: block;
    width: 100%;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.54);
    box-sizing: border-box;
}

    input:focus {
        outline: none;
    }

    input:focus ~ label,
    input:valid ~ label,
    input:disabled ~ label 
    {
        top: -14px;
        font-size: 12px !important;
        color: var(--intradiem-primary-color) !important;
    }

    input[type="text"]:disabled {
        background-position: bottom -1px left 0;
        background-size: 4px 1px;
        background-repeat: repeat-x;
    }

    input:focus ~ .bar:before {
        width: 100%;
    }

label {
    color: var(--intradiem-primary-color) !important;    
    font-size: 16px;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    left: 0;
    top: 7px;
    transition: 300ms ease all;
}

input:required ~ label:after {
    content: '*';
    color: #f44336;
    margin-left: 5px;
}

.bar {
    position: relative;
    display: block;
    width: 100%;
}

    .bar:before {
        content: '';
        height: 2px;
        width: 0;
        bottom: 0;
        position: absolute;
        background: var(--intradiem-primary-color);
        transition: 300ms ease all;
        left: 0;
    }

.error-text {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-field.error .bar:before {
    background: #f44336;
}

.form-field.error label {
    color: #f44336;
}

.form-field.error .error-text {
    display: block;
}

/**
 * buttons
 */
.buttons {
    text-align: right;
}

button + button {
    margin-left: 10px;
}

button {
    text-transform: uppercase;
    font-family: Roboto, "Helvetica Neue", sans-serif;
    font-size: 14px;
    color: var(--intradiem-primary-color);
    background-color: transparent;
    overflow: hidden;
    font-weight: 500;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    outline: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;
    vertical-align: baseline;
    text-align: center;
    margin: 0;
    min-width: 88px;
    line-height: 36px;
    padding: 0 6px;
    border-radius: 3px;
    letter-spacing: .01em;
}

    button.icon {
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
    }

    button.icon img {
        margin-top: 7px;
        width: 28px;
    }

    button:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    button.primary {
        color: white;
        background-color: rgb(45,181,110);
        box-shadow: 0 2px 5px 0 rgb(0 0 0 / 26%);
    }

    button.primary:hover {
        background-color: var(--intradiem-primary-color);
    }

    button .ripple {
        border-radius: 50%;
        opacity: 0.2;
        background-color: var(--intradiem-primary-color);
        position: absolute;
        transform: scale(0);
        animation: ripple 0.6s linear;
        width: 400px;
        height: 400px;
    }

    button.primary .ripple {
        background-color: white;
    }

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}
