.kcl-login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.kcl-login-box {
    width: 100%;
    max-width: 430px;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.10);
    box-sizing: border-box;
}

.kcl-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.kcl-login-header h2 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.2;
}

.kcl-login-header p {
    margin: 0;
    color: #6b7280;
}

.kcl-field {
    margin-bottom: 20px;
}

.kcl-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
}

.kcl-field input[type="text"],
.kcl-field input[type="password"] {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.kcl-field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.kcl-password-wrapper {
    position: relative;
}

.kcl-password-wrapper input {
    padding-right: 70px !important;
}

.kcl-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #2563eb;
    cursor: pointer;
    font-weight: 600;
}

.kcl-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
    font-size: 14px;
}

.kcl-options a {
    color: #2563eb;
    text-decoration: none;
}

.kcl-options a:hover {
    text-decoration: underline;
}

.kcl-remember {
    display: flex;
    align-items: center;
    gap: 7px;
}

.kcl-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 50px;
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s, transform 0.1s;
}

.kcl-button:hover {
    background: #1d4ed8;
}

.kcl-button:active {
    transform: translateY(1px);
}

.kcl-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.kcl-message {
    display: none;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.kcl-message.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.kcl-message.success {
    display: block;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.kcl-spinner {
    display: none;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: kcl-spin 0.7s linear infinite;
}

.kcl-spinner.active {
    display: inline-block;
}

@keyframes kcl-spin {
    to {
        transform: rotate(360deg);
    }
}

.kcl-logged-in {
    max-width: 430px;
    margin: 40px auto;
    padding: 40px;
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.10);
}

.kcl-logged-in .kcl-button {
    margin-top: 20px;
}

.kcl-logout {
    display: block;
    margin-top: 20px;
    color: #dc2626;
    text-decoration: none;
}

@media (max-width: 500px) {

    .kcl-login-box {
        padding: 28px 20px;
    }

    .kcl-options {
        flex-direction: column;
        align-items: flex-start;
    }

}
