/**
 * Hello Login Form Styles
 *
 * @package HelloRK
 */

/* ==========================================================================
   Container
   ========================================================================== */

.hello-login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ==========================================================================
   Form
   ========================================================================== */

.hello-login-form__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ==========================================================================
   Fields
   ========================================================================== */

.hello-login-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hello-login-form__field--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
}

.hello-login-form__label {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
}

.hello-login-form__required {
    color: #c41e3a;
}

.hello-login-form__input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.hello-login-form__input:focus {
    outline: none;
    border-color: #8bc34a;
    box-shadow: 0 0 5px 0px var(--e-global-color-primary);
}

.hello-login-form__input::placeholder {
    color: #9ca3af;
}

/* ==========================================================================
   Checkbox
   ========================================================================== */

.hello-login-form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #374151;
    cursor: pointer;
}

.hello-login-form__checkbox {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    cursor: pointer;
    accent-color: #8bc34a;
}

.hello-login-form__link {
    color: #c41e3a;
    text-decoration: none;
    font-weight: 500;
}

.hello-login-form__link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.hello-login-form__submit {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--e-global-color-primary);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, transform 0.1s ease-in-out;
}

.hello-login-form__submit:hover {
    background-color: var(--e-global-color-secondary);
}

.hello-login-form__submit:active {
    transform: scale(0.98);
}

.hello-login-form__submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.5);
}

/* ==========================================================================
   Privacy Notice
   ========================================================================== */

.hello-login-form__privacy-notice {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin: 0 0 1rem 0;
}

/* ==========================================================================
   Divider
   ========================================================================== */

.hello-login-form__divider {
    display: flex;
    align-items: center;
    margin: 0;
}

.hello-login-form__divider::before,
.hello-login-form__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #bbb;
}

.hello-login-form__divider-text {
padding: 0 1rem;
font-size: 0.875rem;
color: #666;
}

.hello-login-form__pw_box {
display: flex;
gap: 20px;
background-color: #eee;
flex-direction: column;
padding: 20px;
border-radius: 0.5rem;
margin-top: 15px;
transition:all 0.5s;
}

.hello-login-form__pw_box.passwoerter {
	padding: 0px;
	background:#fff;
}


/* ==========================================================================
   Alternative Login
   ========================================================================== */

.hello-login-form__alternative {
    text-align: center;
}

.hello-login-form__alternative .hello-login-form__submit {
background: var(--e-global-color-secondary);
}

.hello-login-form__alternative .hello-login-form__submit:hover {
    background-color: var(--e-global-color-primary);
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   Messages
   ========================================================================== */

.hello-login-form__error,
.hello-login-form__success,
.hello-login-form__info {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.hello-login-form__error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.hello-login-form__success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.hello-login-form__info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* ==========================================================================
   Welcome State
   ========================================================================== */

.hello-login-form--welcome {
    text-align: center;
    padding: 2rem;
    background-color: #f9fafb;
    border-radius: 0.75rem;
}

.hello-login-form__message {
    font-size: 1.125rem;
    color: #374151;
    margin: 0 0 1rem 0;
}

.hello-login-form__logout-link {
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: none;
}

.hello-login-form__logout-link:hover {
    color: #374151;
    text-decoration: underline;
}

/* ==========================================================================
   Name Form
   ========================================================================== */

.hello-login-form--name .hello-login-form__welcome-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

/* ==========================================================================
   Success/Message States
   ========================================================================== */

.hello-login-form--success,
.hello-login-form--message {
    text-align: center;
}

.hello-login-form--success .hello-login-form__success,
.hello-login-form--message .hello-login-form__info {
    margin-bottom: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 480px) {
    .hello-login-form {
        padding: 0 1rem;
    }

    .hello-login-form__input {
        padding: 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .hello-login-form__submit,
    .hello-login-form__classic-login {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
}
