.kong-auth-form {
    width: 100%;
    display: flex;
    justify-content: center;
}

.kong-auth-form__form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.kong-auth-form__label {
    display: block;
}

.kong-auth-form__input,
.kong-auth-form__submit {
    width: 100%;
    box-sizing: border-box;
}

.kong-auth-form__submit {
    cursor: pointer;
    text-align: center;
    border: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.kong-auth-form__submit[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

.kong-auth-form__validation {
    margin-top: 12px;
    font-size: 0;
    color: transparent;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.kong-auth-form__validation--error {
    /* Only for screen readers - hide visually */
    font-size: 0;
    color: transparent;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Password reset form styles */
.kong-auth-form__forgot-password,
.kong-auth-form__back-to-login {
    margin-top: 15px;
    text-align: center;
}

.kong-auth-form__forgot-password-link,
.kong-auth-form__back-to-login-link {
    color: #5A12A5;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.kong-auth-form__forgot-password-link:hover,
.kong-auth-form__back-to-login-link:hover {
    color: #4a0e8a;
    text-decoration: underline;
}

.kong-auth-form__reset-description {
    margin: 15px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Form visibility based on data-mode attribute */
.kong-auth-form[data-mode="login"] .kong-auth-form__form--login,
.kong-auth-form[data-mode="reset"] .kong-auth-form__form--reset,
.kong-auth-form[data-mode="register"] .kong-auth-form__form--register {
    display: flex;
}

.kong-auth-form[data-mode="login"] .kong-auth-form__form--reset,
.kong-auth-form[data-mode="login"] .kong-auth-form__form--register,
.kong-auth-form[data-mode="reset"] .kong-auth-form__form--login,
.kong-auth-form[data-mode="reset"] .kong-auth-form__form--register,
.kong-auth-form[data-mode="register"] .kong-auth-form__form--login,
.kong-auth-form[data-mode="register"] .kong-auth-form__form--reset {
    display: none;
}

/* Toast notification styles for auth module */
.kong-auth-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #5A12A5;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-size: 16px;
    font-weight: 500;
    animation: kongAuthSlideIn 0.3s ease-out forwards;
    max-width: 400px;
    word-wrap: break-word;
}

.kong-auth-toast.error {
    background-color: #dc3545;
    animation: kongAuthSlideInShake 0.6s ease-out forwards;
}

.kong-auth-toast.success {
    background-color: #28a745;
}

@keyframes kongAuthSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes kongAuthSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.kong-auth-toast.hide {
    animation: kongAuthSlideOut 0.3s ease-in forwards;
}

@keyframes kongAuthShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes kongAuthSlideInShake {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    50% {
        transform: translateX(0);
        opacity: 1;
    }
    60%, 70%, 80%, 90%, 100% {
        animation: kongAuthShake 0.5s ease-in-out;
    }
}
