﻿:root {
    --secondary-color: #4D61A9;
    --text-grayishcolor: #2E2E31;
    --main-color: #2626ba;
}

* {
    box-sizing: border-box;
}

html {
    padding: 0;
    margin: 0;
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background-image: url('../images/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f1f1f1;
    position: relative;
}

    /* Overlay for background image transparency */
    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgb(255, 255, 255, 0.50);
        z-index: -1;
    }


a {
    text-decoration: none;
}

button {
    cursor: pointer;
}

/*Navbar Styling*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    border-bottom: 1px solid #ccc;
    background-color: #fff;
}

.navlogo {
    width: 250px;
    padding: 0 10px;
}

.navright a, .loginbutton {
    background-color: var(--main-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 3px;
    border: none;
}

    .navright a:hover, .loginbutton:hover {
        background-color: var(--secondary-color);
    }
/*Main Area Styling*/
.content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loginarea {
    border: 1px solid #ccc;
    padding: 20px 20px;
    border-radius: 7px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    width: 25%;
    background-color: #fff;
}

.top-side {
    display: flex;
}

.topsidemage {
    width: 80%;
    margin: 0px auto;
    padding: 10px 0 20px 0;
    border-bottom: 1px solid #ccc;
}

.loginbox-header h1 {
    margin: 10px auto;
    text-align: center;
    font-size: 1.5rem;
    color: var(--main-color);
}

/*Form Styling*/
.loginform {
    margin: 20px 0;
}

.inputerror {
    color: red;
    display: none;
    font-size: 0.8rem;
}
/*Footer Styling*/
footer {
    color: var(--main-color);
    text-align: center;
    padding: 3px 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    color: var(--text-grayishcolor);
    margin: 10px 0;
}

.form-input {
    border: 1px solid #ccc;
    border-radius: 7px;
    padding: 7px 15px;
    margin: 5px auto;
    width: 90%;
}

    .form-input:focus {
        outline: none;
        border: 1px solid #898686;
    }

.captcharea {
    display: flex;
    align-content: center;
    margin: 10px auto;
    gap: 20px;
    background-color: #E1E1E1;
    width: 100%;
    justify-content: center;
    padding: 10px;
}

    .captcharea img {
        border: 1px solid #ccc;
        width: 50%;
    }

    .captcharea button {
        padding: 7px 15px;
        border: none;
        background-color: var(--main-color);
        border-radius: 3px;
        color: #fff;
        margin: auto;
    }

        .captcharea button:hover {
            background-color: #71C64F;
        }

.loginbutton {
    width: 70%;
    margin: 10px auto;
    text-align: center;
}

footer p {
    font-size: 0.8rem;
    margin: 0;
    padding: 0;
}

.alert {
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    margin: 10px auto;
    width: 80%;
}

.alert-success {
    background-color: #d0ffd7;
    color: #093500;
    border: 1px solid #093500;
}

.alert-error {
    background-color: #fec4c4;
    color: #790101;
    border: 1px solid #790101;
}

/* Checkmark and Xmark SVG styling */
.icon-wrapper, .checkmark-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    height: 100px; /* Ensure consistent height for both icons */
}

.checkmark, .xmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 4;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #7ac142; /* Initial shadow for checkmark */
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark {
    box-shadow: inset 0px 0px 0px #7ac142;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 4;
    stroke-miterlimit: 10;
    stroke: #7ac142;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
    stroke: #fff; /* White checkmark */
}

.xmark {
    box-shadow: inset 0px 0px 0px #e74c3c; /* Initial shadow for xmark */
    animation: fill-x .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.xmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 4;
    stroke-miterlimit: 10;
    stroke: #e74c3c; /* Red circle for error */
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.xmark__line {
    transform-origin: 50% 50%;
    stroke-dasharray: 48; /* Adjust for line length */
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
    stroke: #fff; /* White X lines */
}

/* Animations */
@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 50px #7ac142;
    }
}

@keyframes fill-x {
    100% {
        box-shadow: inset 0px 0px 0px 50px #e74c3c; /* Red fill for error */
    }
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-5px);
    }

    40% {
        transform: translateX(5px);
    }

    60% {
        transform: translateX(-5px);
    }

    80% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}

.xmark.error-shake {
    animation: fill-x .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both, shake 0.5s ease-in-out 1.2s;
}
.emailverifiedh1 {
    text-align: center;
}

/* Password Strength Indicator Styles */
.password-strength-indicator {
    width: 90%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin: 5px auto;
    overflow: hidden;
    margin-bottom: 0;
}

.strength-bar {
    height: 100%;
    width: 0%;
    background-color: #ccc;
    border-radius: 4px;
    transition: width 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.strength-text {
    font-size: 13px;
    margin: 5px auto;
    font-weight: 500;
    color: #666;
    margin-bottom: 0;
}

/* Strength Colors */
.strength-bar.weak {
    background-color: #e74c3c;
}
/* Red */
.strength-bar.moderate {
    background-color: #f39c12;
}
/* Orange */
.strength-bar.strong {
    background-color: #2ecc71;
}
/* Green */
.strength-bar.very-strong {
    background-color: #27ae60;
}
/* Darker Green */

.strength-text.weak {
    color: #e74c3c;
}

.strength-text.moderate {
    color: #f39c12;
}

.strength-text.strong {
    color: #2ecc71;
}

.strength-text.very-strong {
    color: #27ae60;
}
@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
        border-bottom: 1px solid #ccc;
    }

    .navlogo {
        width: 200px;
    }

    .navright {
        font-size: 0.8rem;
    }

    .loginarea {
        width: 90%;
        padding: 20px;
        border-radius: 3px;
    }

    .topsidemage {
        width: 200px;
    }
}
