/* Perined Theme Login CSS for Keycloak 26 */

/* Reset PatternFly backgrounds */
.login-pf {
    background: none;
}

.login-pf body {
    background: #ffffff;
    background-size: cover;
    height: 100%;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Remove all PatternFly specific overrides */
.pf-c-page__main,
.pf-c-page__main-section,
.pf-l-bullseye,
.pf-l-bullseye__item {
    background: transparent !important;
}

/* Header styling for mijnPerined */
#kc-header {
    text-align: center;
    padding: 50px 0 20px 0;
}

#kc-header-wrapper {
    color: #940070;
    font-size: 32px;
    font-weight: normal;
    letter-spacing: 1px;
    font-family: Arial, sans-serif;
}

/* Card/form container styling */
.card-pf {
    background: #ffffff;
    margin: 0 auto;
    padding: 35px 40px 40px 40px;
    max-width: 420px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Page title */
#kc-page-title {
    color: #333333;
    font-size: 20px;
    font-weight: normal;
    text-align: center;
    margin: 0 0 25px 0;
    font-family: Arial, sans-serif;
}

/* Form groups and spacing */
.form-group,
.pf-c-form__group {
    margin-bottom: 18px;
}

/* Labels styling - smaller and lighter */
label,
.control-label,
.pf-c-form__label {
    color: #555555;
    font-size: 13px;
    font-weight: normal;
    margin-bottom: 6px;
    display: block;
}

/* Input fields - matching original style */
.form-control,
.pf-c-form-control,
input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    font-size: 14px;
    background-color: #ffffff;
    height: 40px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-control:focus,
.pf-c-form-control:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    border-color: #00A8A8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 168, 168, 0.1);
}

/* Error state for inputs */
input[aria-invalid="true"] {
    border-color: #dc2626;
}

/* Password input group with visibility toggle */
.pf-c-input-group {
    position: relative;
    display: flex;
    width: 100%;
}

.pf-c-input-group .pf-c-form-control {
    padding-right: 45px;
}

.pf-c-input-group .pf-c-button {
    position: absolute;
    right: 1px;
    top: 1px;
    bottom: 1px;
    background: #f8f8f8;
    border: none;
    border-left: 1px solid #d0d0d0;
    border-radius: 0 2px 2px 0;
    padding: 0 12px;
    color: #666666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-c-input-group .pf-c-button:hover {
    background: #eeeeee;
}

/* Links styling */
a {
    color: #7a8599;
    text-decoration: none;
}

a:hover {
    color: #0099d3;
    text-decoration: underline;
}

/* Form options and forgot password section */
.login-pf-settings {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

#kc-form-options {
    flex: 1;
}

/* Help links - smaller text */
#kc-form-options a,
#kc-form-options + div a,
.kcFormOptionsWrapperClass a {
    color: #7a8599;
    font-size: 12px;
    text-decoration: none;
}

#kc-form-options a:hover,
#kc-form-options + div a:hover {
    color: #0099d3;
    text-decoration: underline;
}

/* Forgot password link positioning */
#kc-form-options + div,
.kcFormOptionsWrapperClass {
    text-align: right;
    margin: 0;
}

/* Remember me checkbox */
.checkbox {
    margin: 12px 0;
}

.checkbox label {
    font-size: 13px;
    color: #666666;
    display: inline-flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox input[type="checkbox"] {
    margin-right: 6px;
    cursor: pointer;
}

/* Submit button - Perined teal gradient */
.btn-primary,
#kc-login,
input[type="submit"] {
    background: #00A8A8;
    background-image: linear-gradient(to bottom, #7FCFD8 0, #00A8A8 100%);
    border: 1px solid #008888;
    color: #ffffff;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: none;
    letter-spacing: normal;
}

.btn-primary:hover,
#kc-login:hover,
input[type="submit"]:hover {
    background-image: linear-gradient(to bottom, #6EBFC8 0, #009898 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 168, 168, 0.3);
}

.btn-primary:active,
#kc-login:active,
input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 168, 168, 0.3);
}

/* Form buttons container */
#kc-form-buttons, #kc-info {
    margin-top: 20px;
}

/* Error messages */
#input-error,
.pf-c-form__helper-text.pf-m-error,
.kc-feedback-text,
.kcInputErrorMessageClass {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Alert messages */
.alert,
.pf-c-alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 14px;
}

.alert-error,
.pf-c-alert.pf-m-danger {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.alert-warning,
.pf-c-alert.pf-m-warning {
    background-color: #fffbeb;
    border-color: #fbbf24;
    color: #92400e;
}

.alert-success,
.pf-c-alert.pf-m-success {
    background-color: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.alert-info,
.pf-c-alert.pf-m-info {
    background-color: #e0f2fe;
    border-color: #7dd3fc;
    color: #075985;
}

/* Hide alert icons */
.pf-c-alert__icon {
    display: none;
}

/* Back to login link */
#kc-form-options a[href*="loginUrl"],
a[href*="loginUrl"] {
    display: inline-block;
    margin-top: 15px;
    color: #7a8599;
    font-size: 13px;
}

/* Specific styling for back to login link on password reset page */
#kc-form-options[style*="text-align: center"] a {
    color: #7a8599;
    font-size: 13px;
    text-decoration: none;
}

#kc-form-options[style*="text-align: center"] a:hover {
    text-decoration: underline;
}

/* Social login section */
#kc-social-providers {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

#kc-social-providers h2,
#kc-social-providers h4 {
    color: #666666;
    font-size: 14px;
    font-weight: normal;
    text-align: center;
    margin-bottom: 15px;
}

#kc-social-providers ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#kc-social-providers li {
    margin-bottom: 10px;
}

#kc-social-providers a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    color: #333333;
    text-decoration: none;
    transition: background 0.2s ease;
}

#kc-social-providers a:hover {
    background: #eeeeee;
}

/* Registration link */
#kc-registration-container {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

#kc-registration span {
    color: #666666;
    font-size: 14px;
}

#kc-registration a {
    color: #0099d3;
    text-decoration: none;
    font-weight: 500;
}

#kc-registration a:hover {
    text-decoration: underline;
}

/* Canvas container for animated lines */
.canvas-container {
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
    z-index: -1;
    height: 150px;
    overflow: hidden;
}

/* Canvas elements */
canvas.hero-canvas {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Locale dropdown */
#kc-locale {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#kc-locale-dropdown {
    position: relative;
}

#kc-current-locale-link {
    color: #666666;
    text-decoration: none;
    padding: 8px 12px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    font-size: 13px;
}

#kc-locale ul {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    min-width: 120px;
}

#kc-locale:hover ul {
    display: block;
}

#kc-locale ul li {
    margin: 0;
}

#kc-locale ul li a {
    display: block;
    padding: 10px 15px;
    color: #333333;
    text-decoration: none;
    font-size: 13px;
}

#kc-locale ul li a:hover {
    background: #f8f8f8;
}

/* Form wrapper */
#kc-form-wrapper {
    width: 100%;
}

#kc-form {
    width: 100%;
}

#kc-form-login {
    width: 100%;
}

/* Column fixes */
.col-xs-12,
.col-sm-12,
.col-md-12,
.col-lg-12 {
    width: 100%;
    padding: 0;
}

/* Content wrapper */
#kc-content-wrapper {
    display: block;
}

/* Ensure form elements don't have extra padding */
#kc-form-wrapper > * {
    padding-left: 0;
    padding-right: 0;
}

/* Responsive design */
@media (max-width: 767px) {
    .card-pf {
        margin: 20px;
        max-width: none;
        padding: 25px 20px 30px 20px;
    }

    #kc-header-wrapper {
        font-size: 24px;
        padding: 30px 0 15px 0;
    }

    #kc-page-title {
        font-size: 18px;
    }

    .canvas-container {
        display: none;
    }
}

@media (max-width: 480px) {
    .card-pf {
        margin: 10px;
        border-radius: 0;
    }

    #kc-locale {
        position: static;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* Hide canvas2 on larger screens */
@media (min-width: 992px) {
  #canvas2 {
    display: none !important;
  }
}

/* Hide canvas1 on smaller screens */
@media (max-width: 991px) {
  #canvas1 {
    display: none !important;
  }
}

.canvas-container {
  bottom: 30px;
}
