/* =============================================
   weInteract GP — Sign In Widget
   Structural layout only. Visual look comes
   from the shared .gp-card class.
   ============================================= */

.gp-signin {
    display: flex;
    width: 100%;
}

.gp-signin__card {
    width: 100%;
    /* No min-width: card must shrink with the parent. Editor sets max-width
       via Elementor "Max Width" control. */
    min-width: 0;
    display: flex;
    flex-direction: row;
    /* Clip the image's edge-to-edge background to the card's rounded corners. */
    overflow: hidden;
    /* Card padding from Elementor controls applies to .gp-signin__body instead,
       so the image column can run to the card's edges. */
    padding: 0 !important;
}


.gp-signin__image {
    flex: 0 0 auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gp-signin__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.gp-signin__logo {
    display: flex;
}

.gp-signin__logo img {
    display: block;
    height: auto;
}

.gp-signin__subtitle {
    margin: 0 0 16px;
    line-height: 1.4;
}

.gp-signin__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    min-width: 0;
}

/* All flex descendants of the body must allow shrinking, otherwise their
   intrinsic content width propagates up and the card grows to fit. */
.gp-signin__view,
.gp-signin__form,
.gp-signin__field {
    min-width: 0;
}

/* ----- Form ----- */

.gp-signin__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gp-signin__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gp-signin__label {
    font-size: 0.85em;
    line-height: 1.2;
}

.gp-signin__input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    font: inherit;
}

.gp-signin__input:focus {
    outline: 2px solid var(--gp-card-accent, #3d6650);
    outline-offset: 1px;
    border-color: transparent;
}

.gp-signin__remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    cursor: pointer;
}

.gp-signin__remember input {
    margin: 0;
}

.gp-signin__button {
    appearance: none;
    border: 0;
    padding: 12px 16px;
    border-radius: 6px;
    background: var(--gp-card-accent, #3d6650);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gp-signin__button:hover {
    filter: brightness(0.95);
}

.gp-signin__forgot {
    font-size: 0.9em;
    text-decoration: none;
}

.gp-signin__forgot:hover {
    text-decoration: underline;
}

.gp-signin__error {
    color: #b3261e;
    font-size: 0.9em;
    line-height: 1.3;
}

.gp-signin__view--success {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gp-signin__success-message {
    margin: 0;
    line-height: 1.4;
}

.gp-signin__button[disabled] {
    opacity: 0.6;
    cursor: wait;
}
