@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url("https://fonts.googleapis.com/css?family=Inter:400,500,600,700&display=swap");

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html, body {
    margin: 0;
    height: 100%;
}

.create-an-account {
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    background-color: #ffffff;
}

.create-an-account .header {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 16px 156px;
    position: relative;
    flex: 0 0 auto;
    background-color: var(--collection-1-colors-greys-main-text-color);
    border-top-style: none;
    border-right-style: none;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-left-style: none;
    border-color: var(--collection-1-colors-greys-border);
}

.create-an-account .content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    align-items: center;
    gap: 24px;
    position: relative;
    flex: 0 0 auto;
}

.create-an-account .footer {
    position: relative;
    width: 100%;
    height: 456px;
    background-color: var(--lightgrayscalecontent-1);
}

.create-an-account .left {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    position: relative;
    flex: 0 0 auto;
}

.create-an-account .menu {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    position: relative;
    flex: 0 0 auto;
}

.create-an-account .link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    position: relative;
    flex: 0 0 auto;
    background-color: var(--collection-1-colors-greys-border);
    border-radius: 8px;
    overflow: hidden;
}

.create-an-account .text-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    flex: 0 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.create-an-account .text {
    position: relative;
    width: fit-content;
    margin-top: -1px;
    font-family: "Inter-Medium";
    font-weight: 500;
    color: var(--collection-1-colors-greys-grey-1);
    font-size: 16px;
    letter-spacing: 0;
    line-height: 24px;
    white-space: nowrap;
}

.create-an-account .text-icon-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    position: relative;
    flex: 0 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.create-an-account .text-wrapper {
    position: relative;
    width: fit-content;
    margin-top: -1px;
    font-family: "Inter-Regular";
    font-weight: 400;
    color: var(--collection-1-colors-greys-grey-1);
    font-size: 16px;
    letter-spacing: 0;
    line-height: 24px;
    white-space: nowrap;
}

.create-an-account .right {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    position: relative;
    flex: 0 0 auto;
}

.create-an-account .form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    flex: 0 0 auto;
}

.create-an-account .button {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
}

.create-an-account .div-wrapper {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    flex: 0 0 auto;
    background-color: var(--collection-1-colors-greys-grey-1);
    overflow: hidden;
    box-shadow: var(--light-drop-shadow-2);
    position: relative;
    border-radius: 8px;
}

.create-an-account .div {
    position: relative;
    width: fit-content;
    margin-top: -1px;
    font-family: "Inter-Medium";
    font-weight: 500;
    color: var(--collection-1-colors-greys-main-text-color);
    font-size: 16px;
    text-align: center;
    letter-spacing: 0;
    line-height: 24px;
    white-space: nowrap;
}

.create-an-account .button-2 {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    flex: 0 0 auto;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.create-an-account .text-2 {
    position: relative;
    width: fit-content;
    margin-top: -1px;
    font-family: "Inter-Medium";
    font-weight: 500;
    color: var(--collection-1-colors-greys-grey-1);
    font-size: 16px;
    text-align: center;
    letter-spacing: 0;
    line-height: 24px;
    white-space: nowrap;
}

.create-an-account .copy {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    flex: 0 0 auto;
}

.create-an-account .text-wrapper-2 {
    position: relative;
    width: fit-content;
    margin-top: -1px;
    font-family: "Inter-SemiBold";
    font-weight: 600;
    color: #000000;
    font-size: 24px;
    text-align: center;
    letter-spacing: -0.24px;
    line-height: 36px;
    white-space: nowrap;
}

.create-an-account .p {
    position: relative;
    width: fit-content;
    font-family: "Inter-Regular";
    font-weight: 400;
    color: #000000;
    font-size: 16px;
    text-align: center;
    letter-spacing: 0;
    line-height: 24px;
    white-space: nowrap;
}

.create-an-account .input-and-button {
    margin: 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    flex: 0 0 auto;
    width: 100%;
}

.create-an-account .field {
    width: 100%;
    height: 40px;
    padding: 8px 16px;
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid;
    border-color: #e0e0e0;
    font-family: "Inter-Regular";
    font-weight: 400;
    color: #828282;
    font-size: 20px;
    letter-spacing: 0;
    line-height: 30px;
}

.create-an-account .primary-wrapper {
    all: unset;
    box-sizing: border-box;
    display: flex;
    width: 100%;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0px 16px;
    background-color: #000000;
    position: relative;
    border-radius: 8px;
}

.create-an-account .primary {
    position: relative;
    width: fit-content;
    font-family: var(--small-text-font-family);
    font-weight: var(--small-text-font-weight);
    color: #ffffff;
    font-size: var(--small-text-font-size);
    letter-spacing: var(--small-text-letter-spacing);
    line-height: var(--small-text-line-height);
    white-space: nowrap;
    font-style: var(--small-text-font-style);
}

.create-an-account .divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

.create-an-account .rectangle {
    position: relative;
    flex: 1;
    flex-grow: 1;
    height: 1px;
    background-color: #e6e6e6;
}

.create-an-account .text-wrapper-3 {
    position: relative;
    width: fit-content;
    margin-top: -1px;
    font-family: "Inter-Regular";
    font-weight: 400;
    color: #828282;
    font-size: 16px;
    text-align: center;
    letter-spacing: 0;
    line-height: 24px;
    white-space: nowrap;
}

.create-an-account .button-3 {
    all: unset;
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    background-color: #eeeeee;
    position: relative;
    border-radius: 8px;
}

.create-an-account .text-wrapper-4 {
    position: absolute;
    height: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--small-text-font-family);
    font-weight: var(--small-text-font-weight);
    color: #000000;
    font-size: var(--small-text-font-size);
    letter-spacing: var(--small-text-letter-spacing);
    line-height: var(--small-text-line-height);
    white-space: nowrap;
    font-style: var(--small-text-font-style);
}

.create-an-account .google {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 10px;
    left: 14px;
}

.create-an-account .by-clicking-continue {
    position: relative;
    align-self: stretch;
    font-family: "Inter-Regular";
    font-weight: 400;
    color: transparent;
    font-size: 16px;
    text-align: center;
    letter-spacing: 0;
    line-height: 24px;
}

.create-an-account .span {
    color: #828282;
}

.create-an-account .text-wrapper-5 {
    color: #000000;
}

.create-an-account .text-wrapper-6 {
    position: absolute;
    top: 403px;
    left: 612px;
    font-family: "Inter-Regular";
    font-weight: 400;
    color: #969696;
    font-size: 13px;
    letter-spacing: 0;
    line-height: 20px;
    white-space: nowrap;
}

.create-an-account .frame {
    display: inline-flex;
    align-items: center;
    gap: 96px;
    position: absolute;
    top: 48px;
    left: 797px;
}

.create-an-account .links {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    flex: 0 0 auto;
}

.create-an-account .text-wrapper-7 {
    position: relative;
    width: fit-content;
    margin-top: -1px;
    font-family: "Inter-Medium";
    font-weight: 500;
    color: #ffffff;
    font-size: 16px;
    text-align: center;
    letter-spacing: 0;
    line-height: 24px;
    white-space: nowrap;
}

.create-an-account .text-wrapper-8 {
    position: relative;
    width: fit-content;
    font-family: "Inter-Regular";
    font-weight: 400;
    color: var(--lightgrayscalecontent-3);
    font-size: 16px;
    text-align: center;
    letter-spacing: 0;
    line-height: 24px;
    white-space: nowrap;
}

.create-an-account .icons {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    position: absolute;
    top: 306px;
    left: 1176px;
}

.create-an-account .icon-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
}

.create-an-account .icon {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 2px;
    left: 2px;
}

.create-an-account .image {
    position: relative;
    width: 20px;
    height: 20px;
    object-fit: cover;
}

.create-an-account .img {
    position: absolute;
    width: 20px;
    height: 15px;
    top: 5px;
    left: 2px;
}

.create-an-account .subscribe {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    position: absolute;
    top: 298px;
    left: 156px;
}

.create-an-account .button-wrapper {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    flex: 0 0 auto;
}

.create-an-account .button-4 {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    flex: 0 0 auto;
    background-color: var(--lightgrayscalebackground-primary);
    overflow: hidden;
    border: 1px solid;
    border-color: var(--lightgrayscaleborder);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);}

/* Minimal responsive fix - prevent overflow on narrow screens */
@media (max-width: 480px) {
    .create-an-account .content {
        max-width: calc(100% - 20px);
        padding: 0 10px;
    }
    
    .create-an-account .field,
    .create-an-account .primary-wrapper,
    .create-an-account .button-3 {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Password Input with Eye Icon Styles - Add to stylesignup.css */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Update the existing .field class for password inputs */
.field.password-with-toggle {
    width: 100%;
    padding: 12px 48px 12px 16px !important; /* Right padding for eye icon */
    /* Keep your existing field styles */
}

/* Position the eye icon button inside the input */
.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s;
    z-index: 2;
}

.password-toggle-btn:hover {
    opacity: 1;
}

.password-toggle-btn img {
    width: 20px;
    height: 20px;
}

/* Hide the old eye icon that was below the input */
.input-icony {
    display: none !important;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 12px;
}

.strength-bar-container {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak { width: 33%; background: #ff4444; }
.strength-medium { width: 66%; background: #ffaa00; }
.strength-strong { width: 100%; background: #00c851; }

.strength-text {
    font-size: 13px;
    color: #666;
}

/* Password Requirements */
.password-requirements {
    margin-top: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
}

.requirement {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    color: #666;
}

.requirement:last-child {
    margin-bottom: 0;
}

.requirement-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    display: inline-block;
}

.requirement.met {
    color: #00c851;
}

.requirement.met .requirement-icon::before {
    content: "✓";
    color: #00c851;
}

.requirement:not(.met) .requirement-icon::before {
    content: "○";
    color: #ccc;
}

/* ===== PASSWORD FORM IMPROVEMENTS ===== */

/* Move the form higher on the page */
.create-an-account {
    max-width: 680px;
    margin: 40px auto !important;
    padding-top: 20px;
}

.copy {
    margin-bottom: 32px;
}

/* Enhanced eye icon styling */
.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: all 0.2s ease;
    z-index: 2;
}

.password-toggle-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.password-toggle-btn img {
    width: 22px;
    height: 22px;
}

/* Improved password strength bar */
.password-strength {
    margin-top: 16px;
    margin-bottom: 8px;
}

.strength-bar-container {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-text {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

/* Color the text to match strength */
.strength-text.weak {
    color: #ff4444;
}

.strength-text.medium {
    color: #ffaa00;
}

.strength-text.strong {
    color: #00c851;
}

/* Enhanced password requirements */
.password-requirements {
    margin-top: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #e9ecef;
}

.requirement {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #6c757d;
    transition: all 0.2s ease;
}

.requirement:last-child {
    margin-bottom: 0;
}

.requirement.met {
    color: #00c851;
    font-weight: 500;
    transform: translateX(2px);
}

.requirement-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.requirement.met .requirement-icon {
    animation: checkmark 0.3s ease;
}

/* Polish for the submit button */
.primary-wrapper {
    transition: all 0.3s ease;
    margin-top: 24px;
    position: relative;
    overflow: hidden;
}

.primary-wrapper:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Button changes color when password is strong */
.primary-wrapper.ready {
    background: linear-gradient(135deg, #00c851 0%, #00a843 100%);
    box-shadow: 0 2px 8px rgba(0, 200, 81, 0.3);
}

.primary-wrapper.ready .primary {
    font-weight: 600;
}

/* Animations */
@keyframes checkmark {
    0% {
        transform: scale(0) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(0, 200, 81, 0.3);
    }
    50% {
        box-shadow: 0 2px 16px rgba(0, 200, 81, 0.5);
    }
    100% {
        box-shadow: 0 2px 8px rgba(0, 200, 81, 0.3);
    }
}

/* Optional: Add a success glow to the input when password is strong */
.field.password-with-toggle.strong {
    border-color: #00c851;
    box-shadow: 0 0 0 2px rgba(0, 200, 81, 0.1);
}

/* Ensure the password input has proper spacing from the eye icon */
.field.password-with-toggle {
    padding-right: 50px !important;
}

/* Style for when all requirements are met */
.password-requirements.all-met {
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e9 100%);
    border-color: #00c851;
}