/* General Form Styling */



.gpd-form fieldset,
.gpd-form legend {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}
.gpd-form legend {
    display: none;
}

.gpd-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    background: #c2d6f2;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

.gpd-form input {
    transition: transition: 2s ease-in-out;
}

.gpd-form label,
.gpd-form .form-description {
    color: #143666;
}

.gpd-form h2 {
    font-family: "Afacad Flux", Arial, sans-serif;
    font-weight: 600;
    padding: 20px 20px 20px 20px;
    margin: -20px -20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    text-transform: uppercase;
    /* background: #426ca6; */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: #fff;
    color: #426ca6;
}



/* Input Fields */
.gpd-form input[type="text"],
.gpd-form input[type="password"],
.gpd-form input[type="email"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.gpd-form input[type="text"]:focus,
.gpd-form input[type="password"]:focus,
.gpd-form input[type="email"]:focus {
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.5);
    background: #fff;
    outline: none;
}


/* Weakest strength */
.gpd-form input.strength-weakest,
.gpd-form input.strength-weakest:focus {
    border-color: #800000; /* Dark Red */
    background: #f2e5e5;
}
.gpd-form input.strength-weakest:focus {
    box-shadow: 0 0 5px rgba(128, 0, 0, 0.5);
}

/* Weak password strength */
.gpd-form input.strength-weak,
.gpd-form input.strength-weak:focus {
    border-color: #ff0000; /* Red */
    background: #ffe5e5;
}
.gpd-form input.strength-weak:focus {
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

/* Moderate password strength */
.gpd-form input.strength-moderate,
.gpd-form input.strength-moderate:focus {
    border-color: #ff8000; /* Orange */
    background: #fff2e5;
}
.gpd-form input.strength-moderate:focus {
    box-shadow: 0 0 5px rgba(255, 128, 0, 0.5);
}

/* Strong password strength */
.gpd-form input.strength-strong,
.gpd-form input.strength-strong:focus {
    border-color: #ffcc00; /* Yellow */
    background: #fff8e5;
}
.gpd-form input.strength-strong:focus {
    box-shadow: 0 0 5px rgba(255, 192, 0, 0.5);
}

/* Stronger password strength */
.gpd-form input.strength-stronger,
.gpd-form input.strength-stronger:focus {
    border-color: #80ff00; /* Light Green */
    background:#f2ffe5;
}
.gpd-form input.strength-stronger:focus {
    box-shadow: 0 0 5px rgba(128, 255, 0, 0.5);
}

/* Strongest password strength */
.gpd-form input.strength-strongest,
.gpd-form input.strength-strongest:focus {
    border-color: #008000; /* Green */
    background: #e5f2e5;
}
.gpd-form input.strength-strongest:focus {
    box-shadow: 0 0 5px rgba(0, 128, 0, 0.5);
}

/* Labels */
.gpd-form label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #333;
}

/* Buttons */
.gpd-form button,
.gpd-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: #426ca6;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: "Afacad Flux", Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}
.gpd-form button.password-generate {
    font-size: 1.0rem;
}
/*
padding: 12px 20px;
    background: #426ca6;
    border-radius: 10px;
    color: #fff;
    transition: 0.2s ease-in-out;

    background-color: #426ca6;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    height: 40px;
*/

.gpd-form button:hover,
.gpd-form input[type="submit"]:hover {
    background: #143666;
}

.gpd-form .form-group {
    margin-top: 0.5rem;
}

/* Error Messages */
.gpd-form .error-message {
    color: #992e2e;
    font-size: 1rem;
    margin-top: 5px;
    line-height: 32px;
    font-weight: bold;
}
.gpd-form .error-message svg {
    float: left;
    margin: 0 3px 0 0;
    height: 32px;
    width: 32px;
    font-weight: normal;
    vertical-align: middle;
}

.gpd-form .password-tooltip {
    position: absolute;
    padding: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    display: none;
    width: calc(100% - 20px); /* Adjust width for padding */
    left: 0;
    top: calc(100% + 0px); /* Position below input with spacing */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.gpd-form .password-tooltip::before {
    content: "";
    position: absolute;
    top: -20px; /* Position triangle above tooltip */
    left: 20px; /* Adjust to center the triangle */
    border-width: 10px; /* Triangle size */
    border-style: solid;
    border-color: transparent transparent #f9f9f9 transparent; /* Matches tooltip background */
}

.gpd-form .password-tooltip::after {
    content: "";
    position: absolute;
    top: -21px; /* Slightly above the triangle to show border */
    left: 20px; /* Align with triangle */
    border-width: 10px; /* Triangle size */
    border-style: solid;
    border-color: transparent transparent #ccc transparent; /* Matches tooltip border */
    z-index: -1; /* Places it behind the triangle */
}

/* Tooltip Criteria */
.gpd-form .password-tooltip div {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.gpd-form .password-tooltip span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
    background: #ff0000;
}

/* Success Circles */
.gpd-form .password-tooltip span.success {
    background: #40c040;
}

/* Password Strength Meter */
.gpd-form .password-strength-meter {
    height: 8px;
    background: #e0e0e0;
    margin-top: 10px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.gpd-form .password-strength-meter div {
    height: 100%;
    background: #0073aa;
    transition: width 0.3s;
}

/* Password Input Wrapper */
.gpd-form .password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Password Toggle Icon */
.gpd-form .password-toggle {
    all: unset; /* Resets all styles */
    font-size: 18px;
    color: #666;
    cursor: pointer;
    display: inline-block;
    padding: 0;
    margin: 0;
    text-align: center;
    line-height: 1;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #666;
    z-index: 2;
}

.gpd-form .password-toggle:hover {
    color: #0073aa;
    background: none;
}

/* Password Input */
.gpd-form .password-wrapper input {
    padding-right: 40px; /* Ensure space for the icon */
}

.gpd-form .password-toggle svg {
    width: 24px;
    height: 24px;
    cursor: pointer;
    vertical-align: middle;
    fill: none; /* Inherits the color of the parent */
}

.gpd-form .input-wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.gpd-form .input-wrapper > .password-wrapper {
    flex: 1;
}
.gpd-form .password-generate, .button-flex-fit {
    width: 90px;
    margin: 10px 0 10px 5px;
    padding: 0;
}

.gpd-form .password-tooltip-checklist > span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}
.gpd-form .password-tooltip-checklist .circle-invalid {
    background-color: #ff0000;
}
.gpd-form .password-tooltip-checklist .circle-valid {
    background-color: #40c040;
}