:root {
    --mdc-theme-primary: #1565c0;
    /* Your primary color */
    --mdc-theme-secondary: #e8eaf6;
    /* Your secondary color */
    --mdc-theme-background: #ffffff;
    --mdc-theme-surface: #ffffff;
    --mdc-theme-on-primary: #ffffff;
    /* Text on primary */
    --mdc-theme-on-surface: #000000;

    --super-light-gray: #f5f5f5;
    --main-error-color: #e40000;
    --main-success-green: #1bac16;
    --main-success-blue: #1976d2;
    --main-warning-color: #e47a00;

    --dark-main-bg-color: #20202e;
    --dark-main-input-bg-color: #fefefe;
}

.themeTmplDARK {
    --mdc-theme-primary: #7ab8ff;
    --mdc-theme-primary2: #3e97fc;
    --mdc-theme-secondary: #a2a8af;
    --mdc-theme-secondary2: #666a6e;
    --mdc-theme-background: #121212;
    --mdc-theme-surface: #1e1e1e;
    --mdc-theme-on-surface: #ffffff;
}

.mdc-button {
    height: 50px !important;
    transition: all .2s ease-in-out;
}

.mdc-button--outlined:hover {
    background-color: var(--super-light-gray);
}

.themeTmplDARK .mdc-button--outlined {
    background-color: var(--mdc-theme-secondary);
    color: var(--mdc-theme-on-primary);
}

.themeTmplDARK .mdc-button--outlined:hover {
    background-color: var(--mdc-theme-secondary2);
}

.themeTmplDARK .mdc-button--raised:hover {
    background-color: var(--mdc-theme-primary2);
}

.themeTmplDARK label {
    background-color: white;
}

/* .mdc-floating-label, */
.mdc-floating-label--float-above {
    color: var(--mdc-theme-primary) !important;
}

.themeTmplDARK .mdc-floating-label--float-above {
    background-color: var(--dark-main-input-bg-color);
    padding: 5px 5px 0px 5px;
    border-radius: 5px;
}

/* 
.mdc-line-ripple::after {
    background-color: var(--mdc-theme-primary) !important;
}

.mdc-notched-outline--upgraded .mdc-notched-outline__notch {
    border-color: var(--mdc-theme-primary) !important;
} */

.themeTmplDARK .mdc-text-field {
    background-color: var(--dark-main-input-bg-color);
}

.themeTmplDARK .mdc-text-field__input {
    color: #ffffff;
}

.themeTmplDARK .mdc-floating-label {
    color: rgba(255, 255, 255, 0.7);
}

.themeTmplDARK .mdc-floating-label {
    color: rgba(255, 255, 255, 0.7);
}

.themeTmplDARK .mdc-text-field--focused .mdc-floating-label {
    color: var(--mdc-theme-primary)
}

.themeTmplDARK .mdc-notched-outline__leading,
.themeTmplDARK .mdc-notched-outline__notch,
.themeTmplDARK .mdc-notched-outline__trailing {
    border-color: rgba(255, 255, 255, 0.3);
}

.themeTmplDARK .mdc-text-field__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.themeTmplDARK .mdc-text-field--disabled {
    opacity: 0.5;
}

a {
    color: var(--mdc-theme-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

html,
body {
    height: 100%;
    flex: 1;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: Roboto, sans-serif;

    /* background-color: #f5f5f5; */
}

body.themeTmplDARK {
    color: white;
}

.big-checkbox {
    transform: scale(1.5);
    -webkit-transform: scale(1.5);
    margin: 10px;
    cursor: pointer;
}

.captchaContainer {
    /* text-align: center; */
    /* padding: 0 0 0 20px; */
    justify-items: center;
}

/* .g-recaptcha {
    display: inline-block;
} */

/* .g-recaptcha {
    -webkit-transform: scale(0.9);
    -moz-transform: scale(0.9);
     -ms-transform: scale(0.9);
      -o-transform: scale(0.9);
         transform: scale(0.9);
  -webkit-transform-origin: 0 0;
     -moz-transform-origin: 0 0;
      -ms-transform-origin: 0 0;
       -o-transform-origin: 0 0;
          transform-origin: 0 0;
} */

.tfa-input {
    font-size: 2rem;
    text-align: center;
}

.header {
    height: 12vh;
    width: 100%;
    display: flex;
    position: absolute;
    /* background-color: var(--mdc-theme-secondary); */
}

.themeTmplDARK .header {
    height: 12vh;
    width: 100%;
    display: flex;
    position: absolute;
    background-color: var(--dark-main-bg-color);
}

.headerWrapper {
    width: 100%;
    display: flex;
    flex: 1;
}

.headerLeftColumn {
    flex: 1;
    display: flex;
}

.headerLeftColumn .logoContainer {
    align-content: center;
    padding: 0 0 0 20px;
}

.header .logoImg {
    height: 50px;
}


#logoTextContainer {
    align-content: center;
    padding-left: 10px;
    cursor: pointer;
}

.headerLeftColumn .logoText {
    font-weight: 700;
    font-size: 1.5rem;
}

.headerLeftColumn .logoHint {
    color: #666666;
    font-size: 0.8rem;
}

.themeTmplDARK .headerLeftColumn .logoHint {
    color: #999999;
}

.headerRightColumn {
    flex: 1;
    text-align: right;
    padding: 10px;
    display: flex;
}

.headerRightColumn select {
    border: none;
    background: none;
}

.themeTmplDARK .headerRightColumn select {
    color: white;
}

.body {
    flex: 1;
    justify-content: center;
    justify-items: center;
    align-items: center;
    align-content: center;
}

.bodyBg {
    background: url('../images/background.v100.jpg');
    background-size: cover;
    height: calc(100% - 17vh);
    left: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    top: 12vh;
    width: 100%;
}

.themeTmplDARK .bodyBg {
    background: url('../images/background-dark.v100.jpg');
    background-size: cover;
    height: calc(100% - 17vh);
    left: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    top: 12vh;
    width: 100%;
}

.bodyBg.fadeIn {
    -webkit-animation: fadeInBg 1s;
    animation: fadeInBg 1s;
}

.bodyBg:before {
    content: "";
    display: block;
    position: absolute;
    background: url('../images/clock_bg.v100.png');
    height: 300%;
    /* left: -50%; */
    top: -100%;
    transform: rotate(-28deg);
    width: 100%;
}

.bodyBg:after {
    content: "";
    display: block;
    position: absolute;
    background: url("../images/bg_top_clean.v100.png") center top no-repeat;
    background-size: 100%;
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
}

.themeTmplDARK .bodyBg:after {
    content: "";
    display: block;
    position: absolute;
    background: url("../images/bg_top_clean_dark.v100.png") center top no-repeat;
    background-size: 100%;
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
}

.bodyBgClocks {
    height: calc(100% - 17vh);
    left: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    top: 12vh;
    width: 100%;
}

.bodyBgClocks.fallClocksDown {
    -webkit-animation: fallClocksDown 1s ease-in;
    animation: fallClocksDown 1s ease-in;
}

.bodyBgClocks:after {
    content: "";
    display: block;
    position: absolute;
    background: url("../images/bg_top_clocks.v102.png") center top no-repeat;
    background-size: 100%;
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
}

.bodyBgClocksError:after {
    content: "";
    display: block;
    position: absolute;
    background: url("../images/bg_top_clocks_error.v101.png") center top no-repeat;
    background-size: 100%;
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
}

.bodyBgClouds {
    height: calc(100% - 17vh);
    left: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    top: 12vh;
    width: 100%;
    -webkit-animation: slideCloudsIn 3s ease-out;
    animation: slideCloudsIn 3s ease-out;
}

.bodyBgClouds:after {
    content: "";
    display: block;
    position: absolute;
    background: url("../images/bg_top_clouds.v101.png") center top no-repeat;
    background-size: 100%;
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
}

.themeTmplDARK .bodyBgClouds:after {
    content: "";
    display: block;
    position: absolute;
    background: url("../images/bg_top_clouds-dark.v100.png") center top no-repeat;
    background-size: 100%;
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
}

.body .centerWrapper {
    position: relative;
    border-radius: 20px;
    max-width: 400px;
    min-width: 250px;
    margin: 50px auto;
    padding-bottom: 40px;
    padding: 30px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 125px 2px;
    border: 5px solid var(--mdc-theme-secondary);
    background-color: white;
}

.themeTmplDARK .centerWrapper {
    border: 5px solid #666666;
    background-color: var(--dark-main-bg-color);
}

.body .centerWrapper .error {
    border: 2px solid var(--main-error-color);
    background-color: var(--super-light-gray);
    border-radius: 5px;
    padding: 10px;
    color: var(--main-error-color);
    margin: 0 0 15px 0;
}

.body .centerWrapper .message {
    border: 2px solid var(--mdc-theme-primary);
    background-color: var(--mdc-theme-secondary);
    border-radius: 5px;
    padding: 10px;
    margin: 0 0 15px 0;
}

.body .centerWrapper .error ul {
    margin: 0px;
    padding: 5px 5px 5px 20px;
}

.footer {
    height: 5vh;
    width: 100%;
    display: flex;
    background-color: var(--mdc-theme-secondary);
}

.themeTmplDARK .footer {
    background-color: var(--dark-main-bg-color);
}

.footerWrapper {
    width: 100%;
    display: flex;
    flex: 1;
}

.footerLeftColumn {
    flex: 1;
    align-content: center;
    padding: 0 0 0 15px;
    font-size: 0.8rem;
}

.footerRightColumn {
    flex: 1;
    align-content: center;
    text-align: right;
    padding: 0 15px 0 15px;
    font-size: 0.8rem;
}

input:-webkit-autofill {
    box-shadow: 0 0 0 30px white inset !important;
    /* override colorish autofill background */
}

.requiredFormItem {
    color: #e40000;
}

.orDiv {
    margin-top: 15px;
    margin-bottom: 15px;
    justify-content: center;
    flex: 1;
    display: flex;
}

.orDiv span {
    position: absolute;
    padding: 5px;
    background-color: white;
    line-height: 15px;
}

.orDiv hr {
    flex: 1;
    border-top: 1px solid #ccc;
    margin-top: 12px;
}

.themeTmplDARK .orDiv span {
    background-color: var(--dark-main-bg-color);
}

.themeTmplDARK .orDiv hr {
    border-top: 1px solid #333333;
}

.regulations {
    margin-top: 25px;
    color: #333333;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.themeTmplDARK .regulations {
    color: #999999;
}

.systemInfoMsg {
    margin-top: 10px !important;
    color: #850505;
    border-color: #850505 !important;
    background-color: white !important;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

ul.space_list li {
    margin-bottom: 1em;
}

.countDownLabel {
    text-align: center;
    font-size: 0.8rem;
    padding: 2px;
    color: #666666;
}

.countDownProgressBarContainer {
    background-color: #f5f5f5;
    border-radius: 20px;
}

.countDownProgressBar {
    background-color: var(--main-success-blue);
    height: 5px;
    border-radius: 20px;
}

.countDownProgressBar.warningBar {
    background-color: var(--main-warning-color);
}

.countDownProgressBar.errorBar {
    background-color: var(--main-error-color);
}

.countDownProgressBar span {
    display: block;
    position: relative;
    height: 100%;
    width: 100%;

    border-radius: 50px;
    /* background-image: linear-gradient(to bottom, #fac4c0, #f60000 60%); */
    box-shadow:
        inset 0 2px 9px rgba(255, 255, 255, 0.3),
        inset 0 -2px 6px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.countDownProgressBar span:after {
    content: "";
    position: absolute;
    top: 0px;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(-45deg,
            rgba(255, 255, 255, .2) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, .2) 50%,
            rgba(255, 255, 255, .2) 75%,
            transparent 75%,
            transparent);
    z-index: 1;
    background-size: 50px 50px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    overflow: hidden;
}

.countDownProgressBar>span:after {
    animation: countDownSwipe 1s linear infinite;
}

.bottom-link-btn {
    display: inline-flex;
    align-items: center;
    /* vertical alignment */
    gap: 8px;
    /* space between image and text */
    padding: 3px 7px;
    /* background: #dc3545; */
    /* YouTube-like red */
    /* color: white; */
    text-decoration: none;
    border-radius: 6px;
    font-family: Arial, sans-serif;
}

.bottom-link-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.generate-password-btn {
    width: 100%;
    height: 32px;
    margin-top: -8px;
    margin-bottom: 12px;
}

.generate-password-btn .mdc-button__label {
    font-size: 13px;
}

/* toggle password field */
.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle .material-icons {
    font-size: 20px;
}

.material-icons.visibility-off::before {
    content: "visibility_off";
}

.material-icons.visibility-on::before {
    content: "visibility";
}

/* #passwordField {
    padding-right: 48px;
} */

@keyframes countDownSwipe {
    0% {
        background-position: 50px 50px;
    }

    100% {
        background-position: 0 0;
    }
}

@keyframes fadeInBg {
    from {
        opacity: 0.2;
    }

    to {
        opacity: 1;
    }
}

@keyframes fallClocksDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }

    70% {
        opacity: 1;
        transform: translateY(0);
    }

    80% {
        transform: translateY(-10px);
    }

    90% {
        transform: translateY(0px);
    }

    95% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes slideCloudsIn {
    0% {
        opacity: 0;
        transform: translateX(-400px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 800px) {
    body {
        min-height: 800px;
    }

    .footer {
        height: auto;
    }
}