/**
 * Custom Login Styles
 * Two-stage login form for CSK
 */

.page-template-template-custom-login #primary {
    min-height:65dvh;
    position:relative;
    background-image:url(/wp-content/themes/CSK-Child/images/bgr-login.webp);
    background-size:cover;
    width:100%;
}
.content-area.custom-login-page  {
    margin:0 !important;
    padding-top:60px;
}

/* Container */
.custom-login-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.custom-login-container h1 {
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    text-transform:uppercase;
    font-weight:800;
    font-size:40px;
}

/* Form fields */
.custom-login-form .form-row {
    margin-bottom: 20px;
}

.custom-login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.custom-login-form .input-text {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.custom-login-form .input-text:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 1px #333;
}

/* Kill Chrome's horrible autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
}

/* Button */
.custom-login-form .button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
}

/* Password stage container */
#password-stage {
    margin-top: 30px;
}

/* Loading state */
.custom-login-form.loading {
    opacity: 0.6;
    pointer-events: none;
}


/* Horizontal display */
/* Multiword password styling */
.multiword-form {
    margin-top: 20px;
}

.multiword-inputs-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 20px;
}

.multiword-row {
    flex: 1;
    margin-bottom: 0 !important;
}

.multiword-row label {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 4px;
    color: #666;
}

.multiword-input {
    text-align: center;
}

/* Dash separator */
.word-separator {
    flex: 0 0 auto;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    margin-bottom: 12px;
    user-select: none;
}

/* Mobile: stack vertically */
@media (max-width: 600px) {
    .multiword-inputs-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .word-separator {
        display: none;
    }

    .multiword-row {
        width: 100%;
    }
}

/* Form links styling */
.form-links {
    text-align: center;
    margin-top: 20px;
}

.form-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.form-links a:hover {
    color: #333;
    text-decoration: underline;
}