/* ==========================================================================
   Visualfy Account - Static Version
   CSS for validation and password reset pages
   ========================================================================== */

/* ==========================================================================
   Fonts
   ========================================================================== */
@font-face {
    font-family: 'Nexa';
    src: url('../fonts/Nexa-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nexa';
    src: url('../fonts/Nexa-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nexa';
    src: url('../fonts/Nexa-Bold-Italic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Hind';
    src: url('../fonts/Hind-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hind';
    src: url('../fonts/Hind-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
* {
    box-sizing: border-box;
}

html {
    font-size: 112.5%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 2rem 0;
    font-family: 'Nexa', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #fff;
    color: #002554;
    line-height: 1.6;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container-wrap {
    width: 80%;
    margin: 0 auto;
    max-width: 900px;
}

@media (max-width: 600px) {
    .container-wrap {
        width: 98%;
        padding: 0 1%;
        max-width: 100%;
    }
}

.container-inner {
    margin-bottom: 2.5rem;
}

.container-bg {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 2rem;
    color: #002554;
}

@media (max-width: 600px) {
    .container-bg {
        padding: 1rem;
        border-radius: 1rem;
    }
}

.container-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    padding: 0 1.25rem;
}

@media (max-width: 767px) {
    .container-flex {
        flex-direction: column;
        gap: 0.6rem;
    }

    .container-left,
    .container-right {
        width: 100%;
    }

    .container-right {
        display: none;
    }
}

.container-left {
    flex: 4;
    min-width: 0;
}

.container-right {
    flex: 2;
    min-width: 0;
}

.container-right img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ==========================================================================
   Background Variants
   ========================================================================== */
.bg-light {
    background-color: #e2fbf8;
}

.bg-dark {
    background-color: #f6f9f9;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 1rem 0;
    font-weight: 700;
    color: #002554;
}

h2.heading,
.uagb-heading-text {
    font-size: 2rem;
    line-height: 1.2;
    outline: none;
}

h3.heading {
    font-size: 1.5rem;
    line-height: 1.25;
}

h4.heading {
    font-size: 1.25rem;
    line-height: 1.25;
}

.heading-text {
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #002554;
    margin: 0;
}

@media (max-width: 600px) {

    h2.heading,
    .uagb-heading-text {
        font-size: 1.3rem;
    }

    h3.heading {
        font-size: 1.1rem;
    }

    h4.heading {
        font-size: 1rem;
    }

    .heading-text {
        font-size: 1rem;
    }
}

p {
    margin: 0 0 1rem 0;
}

strong {
    font-weight: 700;
    color: #002554;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #002554;
    font-size: 1rem;
}

input[type="password"],
input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1.5px solid #002554;
    border-radius: 4px;
    background-color: #fff;
    color: #002554;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="password"]:focus,
input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #22bfb8;
    box-shadow: 0 0 0 3px rgba(42, 210, 201, 0.2);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    height: 100%;
    right: 0;
    background: #5edfd8;
    border-radius: 0 4px 4px 0;
    border: 1.5px solid #002554;
    outline: none;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle-password:hover {
    background: #22bfb8;
}

.toggle-password:focus {
    outline: 2px solid #002554;
    outline-offset: 2px;
}

.toggle-password svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Password Requirements
   ========================================================================== */
#password-requirements {
    margin: 1.5em 0;
    padding: 1rem;
    background-color: #e2fbf8;
    border-radius: 8px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.75em;
    margin-bottom: 0.6em;
    font-size: 1rem;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.rule-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rule-icon svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.button,
.button:visited {
    display: inline-block;
    font-weight: 400;
    font-size: 1em;
    line-height: 1.2;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border-radius: 24px;
    padding: 12px 24px 10px 24px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    outline: none;
    box-shadow: 0px 0px 0 #00000026;
}

.button:focus {
    border-color: #333;
    outline-offset: 2px !important;
}

.button[role="button"] {
    cursor: pointer;
}

.button:disabled,
.button[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.form__contact--send {
    margin-top: 1.5rem;
    width: 100%;
    font-weight: 500;
    border: 1px solid #002554;
}

/* ==========================================================================
   Loading Spinner
   ========================================================================== */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 37, 84, 0.1);
    border-top-color: #002554;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* ==========================================================================
   Flex Children
   ========================================================================== */
.container-center {
    flex: 1;
    min-width: 0;
    text-align: center;
}

/* ==========================================================================
   Button Newsletter
   ========================================================================== */
.button-newsletter {
    text-align: center;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    color: #002554;
    margin-top: 10px;
}

.button-newsletter a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 600px) {
    .button-newsletter {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Button Variants
   ========================================================================== */
.button-primary,
.button-primary:visited {
    background: #002554;
    color: #FFF;
    padding: 13px 50px 9px 20px;
}

.button-primary:hover,
.button-primary:focus {
    background: #011B40;
    color: #FFF;
    outline-color: #22bfb8 !important;
}

.button-primary:active {
    background: #011333;
    color: #FFF;
}

.button-secondary,
.button-secondary:visited {
    background: #2AD2C9;
    color: #002554;
}

.button-secondary:hover,
.button-secondary:focus {
    background: #22bfb8;
    color: #002554;
    outline-color: #002554 !important;
}

.button-secondary:active {
    background: #1da99d;
    color: #fff;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}