/**
Author: Ishan Jayman
 */

/* Reset all default styles */
body,
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
dl, dd, ol, ul,
figure,
form, fieldset, legend,
button, input, textarea, select {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font-family: inherit;
    font-weight: inherit;
    line-height: 1;
    vertical-align: baseline;
}

/* Correct the line height in all browsers */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

/* Remove the list style on navigation lists */
ul, ol {
    list-style: none;
}

/* Reset the default link styles */
a {
    text-decoration: none;
    color: inherit;
}

/* Reset other elements that can have inherent styles */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Optional: Set a base font size and line height for easier scaling */
body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background: url("../images/bg.jpeg");
    background-size: contain;
}

/* Optional: Set a background color and text color for better legibility */
body {
    background-color: #f0f0f0;
    color: #333;
}
.root{
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.auth_container{
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 30px 50px;
}
.logo{
    max-width: 300px;
    margin: 0 auto;
}
.auth_container h1{
    padding: 20px 0;
}
.btn{
    background: #2074a6;
    color: #fff;
    padding: 10px 40px;
    text-align: center;
    margin: 10px;
}
.btn-small{
    padding: 5px 30px;
}
.btn-block{
    display: block;
}

/* Header styles */
header {
    color: #000;
    text-align: center;
    padding: 15px 0;
}

h1 {
    margin: 0;
    font-size: 24px;
}

/* Responsive header styles */
@media screen and (max-width: 480px) {
    header {
        font-size: 18px;
    }
}

/* Common styles for the form elements */
form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

label,
input,
button {
    display: block;
    margin-bottom: 10px;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

button {
    box-sizing: border-box;
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
}
button.green{
    background-color: #4CAF50;
    color: white;
}

.form_controls{
    display: flex;
    justify-content: center;
    padding-top: 15px;
}
.form_controls.left{
    justify-content: left;
}

.enroll_voice_container{
    display: none;
    width: 500px;
}
.enroll_voice_container p{
    padding-bottom: 30px;
    text-align: center;
}

.enrollment_details{
    width: 400px;
}

.voice_form{
    position: relative;
}
.voice_form.step_1 .enrollment_details{
    display: block;
}
.voice_form.step_1 .enroll_voice_container{
    display: none;
}

.voice_form.step_2 .enrollment_details{
    display: none;
}
.voice_form.step_2 .enroll_voice_container{
    display: block;
}

.voice_form #enroll_voice_container.error .enroll_voice_container{
    display: none;
}

.enroll_voice_box{
    display: flex;
    gap: 50px;
    align-items: center;
    padding: 30px 0;
}

/* Add your styles for the microphone icon here */
#microphoneIcon {
    background: transparent;
    font-size: 48px;
    width: 100px;
    height: 100px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    flex: 0 0 100px;
    margin: 0;
}
#microphoneIcon.active{
    animation: pulse 2s infinite;
}
#microphoneIcon i{
    position: absolute;
    width: 48px;
    height: 48px;
    left: 50%;
    right: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 10;
}

#microphoneIcon.active {
    animation: none;
}

/* Add circles for animation effect */
#microphoneIcon::before {
    content: "";
    position: absolute;
    z-index: 1;
    width: 32px;
    height: 32px;
    background-color: #4CAF50;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#microphoneIcon::before{
    transform: translate(-50%, -50%) scale(3);
}
#microphoneIcon.active::before{
    animation: circleZoom 2s infinite;
}

#microphoneIcon.active::after {
    content: "";
    position: absolute;
    z-index: 1;
    width: 36px;
    height: 36px;
    background-color: #4CAF50;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: circleZoom 2s infinite;
    animation-delay: 0.5s;
}

@keyframes circleZoom {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

#challengeText{
    background: #ddd;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 18px;
    line-height: 24px;
}

/*
Success container
*/
.enroll_success, .enroll_error{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.message_success{
    font-size: 22px;
    padding: 20px 0;
    text-align: center;
}
.badge-success, .badge-error{
    display: flex;
    border: 4px solid #4CAF50;
    background: #fff;
    color: #4CAF50;
    width: 48px;
    height: 48px;
    font-size: 24px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
}
.badge-error{
    border: 4px solid #ff4242;
    color: #ff4242;
}
.enroll_success p{
    padding-bottom: 30px;
}

/* Styles for the email validation message */
#emailValidationMsg {
    color: red;
    font-size: 14px;
}

/* Styles for invalid email input */
input.invalid {
    border-color: red;
}

/* Media query for responsiveness */
@media screen and (max-width: 480px) {
    form {
        padding: 10px;
    }

    input[type="text"],
    input[type="email"] {
        font-size: 14px;
    }

    button {
        font-size: 14px;
        padding: 10px 15px;
    }
}

.spinner{
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}
.spinner img{
    width: 48px;
}
.show_progress .hide_on_progress{
    visibility: hidden;
}
.show_progress .spinner{
    display: flex;
}

@media only screen and (max-width: 767px) {
    .auth_container{
        position: absolute;
        top: 50%;
        left: 10%;
        right: 10%;
        transform: translateY(-50%);
        padding: 30px;
    }
    .logo{
        max-width: 100%;
    }
    .auth_container h1 {
        padding: 20px 0;
        font-size: 18px;
        text-align: center;
    }

    .enroll_voice_container{
        display: none;
        max-width: 100%;
    }
    .enroll_voice_container p{
        padding-bottom: 30px;
        text-align: center;
    }

    .enrollment_details{
        max-width: 100%;
    }
    .enroll_voice_box{
        flex-direction: column;
    }
}