/* This File Contains CSS for Login & Registration Form &complait form */

/* Trainer Login Form  */

/* Student Login form */
.login-form {
    color: white;
    padding: 4% 0px 0%;
    width: 30%;
    background-color: #171717;
    position: fixed;
    z-index: 999;
    top: 50%;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    left: 50%;
    border: 1px solid var(--color3);
    border-radius: 5px;
    transform: translate(-50%, -50%);

}

.login-form input {
    width: 80%;
    display: block;
    margin: 0% auto;
    height: 2.5rem;
    font-size: 1rem;
    padding: 0% 10%;

}

.login-icon {
    position: absolute;
    color: #171717;
    background-color: var(--secondry-text-color);
    margin-left: 13%;
    margin-top: 2.5%;
}

.forgot-pass {
    color: #a8a8a8;
    margin: 4px 10% 0%;
    width: 80%;
    font-size: 0.8rem;
    display: inline-block;
    word-wrap: normal;
}

#student-login-form .pass-eye {
    position: absolute;
    background-color: var(--secondry-text-color);
    right: 13%;
    bottom: 35.5%;
    cursor: pointer;
    color: #171717;
}

#trainer-login-form .pass-eye {
    position: absolute;
    background-color: var(--secondry-text-color);
    right: 13%;
    bottom: 32.5%;
    cursor: pointer;
    color: #171717;
}

.login-error {
    margin: 12px 10% 0px;
    color: red;
    height: 45px;
    width: 80%;
    font-size: 0.8rem;
}

.login-form h1 {
    text-align: center;
    margin-bottom: 10%;
}

.fa-xmark {
    float: right;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.fa-xmark:hover {
    cursor: pointer;
    color: red;
}

#trainer-login-btn {
    float: right;
    position: relative;
    margin-top: 10px;
    color: var(--color3);
    right: 10%;
    cursor: pointer;
}

#trainer-login-button-link {
    color: var(--color3);
}

.login-form label {
    display: block;
    margin: 1.3rem 0% 0.7rem 10%;
}

.login-form button {
    display: block;
    background-color: var(--color3);
    border: none;
    outline: none;
    border-radius: 6px;
    height: 30px;
    cursor: pointer;
    color: #171717;
    margin: 0% auto;
    font-size: 1rem;
    margin-top: 10%;
    width: 30%;
    font-weight: bold;
}

.login-form button:hover {
    color: var(--secondry-text-color);
}

/* styling for the registration form */
.registration-form-container {
    display: flex;
    width: 100%;
}

#registration-form {
    background-color: #8ebaa5;
    width: 100%;
    margin: 0 auto;
    padding: 6% 5%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#trainer-choose {
    width: 100%;
    margin-bottom: 11px;
    height: 2rem;
}

#registration-form h1 {
    text-align: center;
    margin-bottom: 3%;
    font-size: 3.6rem;
    color: #333;
}

/* Styling for labels and inputs */
.registration-form-container .left label {
    font-size: 1rem;
    color: #333;
    display: block;
}

#student-choose {
    width: 100%;
    padding: 0.8%;
    margin: 1rem auto;
    display: block;
}

.registration-form-container .left input,
#registration-form textarea {
    display: block;
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.4rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

#module input[type="radio"] {
    width: fit-content;
    display: inline;
}

#module input[type="checkbox"] {
    width: fit-content;
    display: inline;
}

#module label {
    width: fit-content;
    font-weight: normal;
    display: inline;

}

.registration-form-container .right input {
    display: inline-block;
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

#options .main-label {
    display: block;
}

#options label {
    display: inline;
}

#options input {
    display: inline;
    width: fit-content;
}


#registration-form textarea {
    height: 60px;
    resize: vertical;
}

#registration-form label[for="student-choose"] {
    text-align: center;
    font-weight: bold;
    display: block;
    font-size: 2rem;
}


#student-choose {
    cursor: pointer;
    width: 70%;
}

/* Styling for the buttons */
#registration-form button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background-color: #171717;
    color: #fff;
    border: none;
    outline: none;
    font-weight: bold;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#registration-form button:hover {
    background-color: #45a049;
}

/* Demo Form */
#demo-select-btn {
    width: 30%;
    margin: 0% 0% 0% 16%;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #ffffff;
    background-color: #171717;
    font-weight: bolder;
    padding: 1rem;
    margin-right: 4%;

}

#registration-form button[type="reset"] {
    background-color: #171717;
    color: #ffffff;
    margin-top: 1rem;
    font-weight: bolder;
    cursor: pointer;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    margin-left: 5%;
    width: 30%;
}

#registration-form button[type="reset"]:hover {
    background-color: #e53935;
}

#registration-form .left,
#registration-form .right {
    margin: 1%;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
}

#registration-form .left {
    width: 45%;
}

#registration-form .right {
    width: 55%;
}

#registration-form .left {
    padding-right: 1%;
}

#registration-form .right {
    padding-left: 1%;
}

/* demo Form */

.demo-text h1 {
    text-align: center;
    font-size: 3rem;
    margin-top: 2%;
    margin-bottom: 2rem;
}

.demo-text h2,
.demo-text p {
    margin-left: 11%;
}

.demo-text {
    padding-top: 6%;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, var(--color3) 0%, rgba(255, 255, 255, 1) 100%);
}

.demo-text p span {
    font-weight: bold;
}

#demo-form {
    padding: 1rem;
    background-color: var(--bg-color);
    font-family: Arial, sans-serif;
    padding: 1rem;

}

#demo-form-container {
    display: flex;
    gap: 2rem;

}

#demo-form-container .left {
    width: 40%;
    padding-left: 10%;
    height: auto;
    display: flex;
    flex-direction: column;
}

#demo-form-container .left label {
    font-weight: bold;
    margin-top: 1rem;
}

#demo-form-container .left input,
#demo-form-container .left textarea {
    padding: 0.5rem 2%;
    margin-bottom: 0rem;
    font-size: 1.1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

#demo-form-container .left textarea {
    resize: vertical;
    height: 100px;
}

#demo-form-container .right {
    width: 60%;
    border-left: 2px solid gray;
    padding-left: 1.5rem;

}

#demo-form-container .right label.main-label {
    font-weight: bold;
    display: block;
}

#demo-form-container .right label[for="preferred_days"] {
    margin-top: 0.5rem;
}

#demo-form-container .right input[type="radio"] {
    margin: 1rem 0.5rem;
}

#demo-form-container .right input[type="radio"]:last-child {
    margin-bottom: 18px;
}

#demo-form-container .right input[type="checkbox"] {
    margin-bottom: 1rem;
    margin-left: 0.5rem;
}

.demo-type-container {
    display: none;
}

.demo-type-container select {
    padding: 0.3rem 1%;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

#demo-form-container .right p {
    font-weight: bold;
    margin-top: 0.5rem;
}

#additional_info {
    width: 100%;
    padding: 1% 2%;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 1rem;
}

.additional_info_container {
    width: 80%;
    margin: 1rem auto;
}

.additional_info_container label {
    font-weight: bold;
}

#demo-form button {
    display: block;
    margin: 1rem 0% 1rem 10%;
    font-weight: bold;
    padding: 0.5rem 2rem;
    border-radius: 6px;
    border: none;
    background-color: #171717;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#demo-form button:hover {
    background-color: var(--color3);
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-icon {
    margin-left: 6px;
    cursor: pointer;
    color: var(--color1);
    font-size: 1rem;
}

.custom-tooltip {
    display: none;
    position: absolute;
    z-index: 100;
    background-color: var(--secondry-bg-color);
    color: var(--secondry-text-color) ;
    border: 1px solid var(--color5);
    padding: 10px 12px;
    border-radius: 6px;
    max-width: 300px;
    top: 125%;
    left: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-weight: normal;
    width: max-content;
}
.custom-tooltip a{
    color: var(--color3);
}
/* ✅ Only show tooltip when container is active */
.tooltip-container.active .custom-tooltip {
    display: block;
}


.reg-eye-icon {
    float: right;
    position: relative;
    top: 2.5%;
    right: 2%;
}

.error-message {
    color: red;
    font-size: 0.8rem;
}

#form-error-message {
    color: red;
    font-size: 1.3rem;
    padding-left: 10%;
}

.success {
    background-color: #171717;
    width: 30vw;
    display: none;
    height: 25vh;
    top: 50%;
    position: fixed;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
}

.blur {
    filter: blur(15px);
}

#success-close {
    color: red;
    top: 8px;
    right: 10px;
    position: relative;
}

.success h3 {
    margin-top: 5vh;
}

.success h4 {
    margin: 15px 0px 25px;
}

.success a {
    background-color: var(--color3);
    padding: 10px;
    color: var(--bg-color);
    margin: 0px auto;
    text-align: center;
    border-radius: 4px;
    display: block;
    width: fit-content;
}

.success h3,
.success h4 {
    text-align: center;
    display: block;
}

.login-page-container {
    width: 100%;
    min-height: 70vh;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(114, 169, 143, 0.8);
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: lighten;
}

.login-page-form {
    margin: 4% 0px;
    padding: 4% 6% 2% 6%;
    background-color: #141414;
    color: #ffffff;
    width: fit-content;
    border-radius: 6px;
}

.login-page-form h1 {
    margin-bottom: 1rem;
    text-align: center;
    font-size: 2rem;
}

#train-loginPage-form {
    display: none;
}

#stu-loginPage-form {
    display: block;
}

.field-container .user-icon {
    width: 5%;
}

.field-container {
    display: inline-block;
    color: #141414;
    padding: 3px 2px;
    background-color: #ffffff;
}

.field-container p {
    display: flex;
    justify-self: center;
    align-items: center;
}

.field-container {
    margin-top: 0.5rem;

}

.login-page-form input {
    border: none;
    width: 95%;
    padding: 4px 12px;
    font-size: 1.2rem;
    outline: none;
}

.login-page-form input:focus {
    outline: none;
}

.field-container {
    display: flex;
}

.field-container .lock-icon {
    width: 5%;

}

.field-container .fa-eye {
    cursor: pointer;
}

.login-page-form .forgot-password {
    color: #ffffff;
    font-size: 0.8rem;
}

#student-login-button,
#trainer-login-button {
    width: 100%;
    margin: 0% auto;
    background-color: #1de4ca;
    padding: 6px 0px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
}

#student-login-button:hover,
#trainer-login-button:hover {
    background-color: #009688;
}

.login-page-form .login-error {
    width: 100%;
    margin: 12px 0px 0px;
}

.login-page-form #trainer-login-button-link,
.login-page-form #student-login-button-link {
    float: right;
    margin-top: 1rem;
    cursor: pointer;
}

/* ............................Comlaint Form................................. */

#complaint-section {
    padding: 50px 20px;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.complaint-page-title {
    font-size: 2.5rem;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px 30px;
    border-radius: 10px;
    margin-top: 3rem;
}

#complaint-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

#complaint-form label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    color: #333;
}

#complaint-form input,
#complaint-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    box-sizing: border-box;
    margin-top: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#complaint-form input:focus,
#complaint-form textarea:focus {
    border-color: #1de4ca;
    outline: none;
    box-shadow: 0 0 5px rgba(113, 196, 18, 0.3);
}

#complaint-form textarea {
    height: 150px;
}

#complain-error {
    color: red;
    margin-top: 10px;
    font-size: 0.95rem;
    display: none;
}

#complaint-form button {
    margin-top: 20px;
    background-color: #171717;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#complaint-form button:hover {
    background-color: #009688;
}

.complain-submit-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #009688;
    color: #000000;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 1000;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.complain-submit-popup.show {
    display: block;
    opacity: 1;
}

.complain-submit-popup i {
    font-size: 1.2rem;
    cursor: pointer;
    position: absolute;
    top: 8px;
    right: 12px;
}

input.valid,
textarea.valid {
    border-color: #28a745;
}

input.invalid,
textarea.invalid {
    border-color: red;
}

.reg-eye-icon {
    cursor: pointer;
}

.loader-container {
    position: fixed;
    display: none;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader {
    width: 60px;
    aspect-ratio: 1;
    --g: conic-gradient(from -90deg at 10px 10px, #171717 90deg, #0000 0);
    background: var(--g), var(--g), var(--g);
    background-size: 50% 50%;
    animation: l17 1s infinite;
}

@keyframes l17 {
    0% {
        background-position: 0 0, 10px 10px, 20px 20px
    }

    33% {
        background-position: -30px 0, 10px 10px, 20px 20px
    }

    66% {
        background-position: -30px 0, -20px 10px, 20px 20px
    }

    100% {
        background-position: -30px 0, -20px 10px, -10px 20px
    }
}

@media only screen and (max-device-width: 480px) {
    .login-form {
        width: 100%;
    }

    .login-btn {
        width: fit-content;
    }

    #student-login-form .pass-eye {
        bottom: 39%;
    }

    #trainer-login-form .pass-eye {
        bottom: 36%;
    }

    #registration-form {
        padding-top: 22%;
    }

    #registration-form h1 {
        font-size: 2rem;
    }

    #registration-form label[for="student-choose"] {
        font-size: 1.5rem;
        margin: 10% auto 5%;
    }

    .registration-form-container {
        flex-direction: column;
        display: block;

    }

    #registration-form button[type="reset"] {
        margin-bottom: 0%;
        margin-top: -6%;
        width: auto;
    }

    .registration-form-container .left {
        padding: 0%;
        width: 100% !important;
        margin: 0%;
    }

    .registration-form-container .right {
        border: none;
        padding: 0%;
        width: 100% !important;
    }

    #registration-form button[type="submit"] {
        width: auto;
        display: block;
        margin: 0% auto;
    }

    .reg-eye-icon {
        top: 2rem !important;
    }

    .demo-text {
        padding-top: 16%;
    }

    .demo-text h1 {
        margin-bottom: 8%;
        margin-top: 0%;
        font-size: 2.9rem;
    }

    .demo-text h2,
    .demo-text p {
        margin-left: 3%;
    }

    #demo-form-container {
        flex-direction: column;
        gap: 0px;
    }

    #demo-form-container .left {
        padding: 0%;
        width: 100%;
    }

    #demo-form-container .left label {
        margin-bottom: 6px;
    }

    .demo-type-container select {
        width: 100%;
    }

    #demo-form-container .left input {
        margin-bottom: 0px;
    }

    #demo-form-container .left textarea {
        margin-top: 8px;
    }

    #demo-form-container .right {
        padding: 0%;
        border: none;
        width: 100%;
    }

    #demo-form-container .right label.main-label {
        margin-top: 16px;
        margin-bottom: 6px;
    }

    #demo-form-container .right input[type="checkbox"] {
        margin-right: 12px;
    }

    #demo-form button {
        margin: 1rem 0px;
    }

    .login-page-form {
        margin-top: 15%;
    }

    #complaint-form {
        padding: 15px;
    }

    #complaint-form input,
    #complaint-form textarea {
        font-size: 0.9rem;
    }

    .complain-submit-popup {
        width: 90%;
        padding: 20px;
    }

    .complaint-page-title {
        font-size: 2rem;
        padding: 10px 20px;
    }
}

@media (min-width: 481px) and (max-width: 1024px) {
    .login-form {
        width: 80%;
    }

    .login-icon {
        margin-top: 1.5%;
    }

    .login-form {
        width: 80%;
    }

    .login-icon {
        margin-top: 1.5%;
    }

    #trainer-login-form .pass-eye {
        bottom: 36.5%;
    }

    .demo-text {
        padding-top: 12%;
        text-align: center;
    }

    .demo-text h1 {
        font-size: 2.5rem;
        margin-top: 3%;
    }

    .demo-text h2,
    .demo-text p {
        margin-left: 5%;
        margin-right: 5%;
        text-align: left;
    }

    #demo-form-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2% 5% 5%;
    }

    #demo-form-container .left,
    #demo-form-container .right {
        width: 100%;
        padding: 0;
        border-left: none;
    }

    .demo-type-container select {
        width: 100%;
    }

    #demo-form-container .left input,
    #demo-form-container .left textarea,
    #demo-form-container .right input[type="radio"],
    #demo-form-container .right input[type="checkbox"] {
        font-size: 1rem;
    }

    #additional_info {
        width: 100%;
    }

    .additional_info_container {
        width: 90%;
    }

    #demo-form button {
        width: 70%;
        margin: 0rem auto 1.5rem;
        display: block;
        font-size: 1.1rem;
    }

    .success {
        width: 50vw;

    }

    .complaint-page-title {
        font-size: 2rem;
        padding: 10px 20px;
    }

    #complaint-form {
        padding: 20px;
    }
}