/* --- Forcefully hide all default WordPress login elements --- */
#loginform, #nav, #backtoblog, .login h1 {
    display: none !important;
    visibility: hidden !important;
}

/* --- Modern & Minimalist Design --- */
:root {
    --kn-primary-color: #5610b7;
    --kn-primary-hover: #460b99;
    --kn-background: #f9f9f9;
    --kn-form-background: #ffffff;
    --kn-text-color: #141414;
    --kn-border-color: #cccccc;
}


body.login {
    background-color: var(--kn-background);
}

#kn-otp-login-container {
    width: 90%;
    max-width: 400px;
    padding: 3rem;
    margin: auto;
    margin-top: 10vh; /* Adjusted for better vertical centering */
    background: var(--kn-form-background);
    box-shadow: 0 4px 20px #5610b7);
    border-radius: 12px;
    text-align: center;
}

.kn-logo {
    max-width: 50%;
    height: auto;
    margin-bottom: 2rem;
}

/* --- Form Elements Styling --- */
.kn-otp-container h2 {
    margin: 0;
    margin-bottom: 0.5rem; /* MODIFIED: Adjusted for subtitle */
    font-size: 1.8rem;
    color: var(--kn-text-color);
    font-weight: 600;
}

/* -- CHANGE START: Added subtitle style -- */
.kn-subtitle {
    font-size: 14px;
    color: #adadad;
    margin-top: 0;
    margin-bottom: 2rem;
}
/* -- CHANGE END -- */

.kn-form-row {
    margin-bottom: 1.25rem;
}

.kn-input {
    width: 100%;
    box-sizing: border-box; /* Added for consistent padding */
    padding: 15px;
    border-radius: 8px;
    background-color: #f1f1f1;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.kn-input:focus {
    outline: none;
    border-color: var(--kn-primary-color);
    box-shadow: 0 0 0 3px #5610b718;
}

.kn-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: var(--kn-primary-color);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.kn-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.kn-button:hover:not(:disabled) {
    background-color: var(--kn-primary-hover);
}

#kn-otp-message {
    margin-top: 1.5rem;
    font-weight: 500;
    min-height: 24px;
    font-size: 0.9rem;
}

.kn-otp-hidden {
    display: none;
}

/* --- Responsive adjustments for mobile devices --- */
@media (max-width: 480px) {
    #kn-otp-login-container {
        margin-top: 15vh;
        padding: 2rem;
    }
}
