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

/* Form Controls */
.login-pf-page .card-pf p {
    color: #5A6872;
}

.pf-c-form-control {
    font-size: 16px;
    border: none;
    background: rgba(82, 82, 82, 0.5);
    backdrop-filter: blur(20.8px);
    color: #C0CECC;
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    padding: 0 15px;
    border-radius: 5px;
    width: 100%;
}

.pf-c-form-control::placeholder {
    color: #C0CECC;
    font-weight: 400;
    letter-spacing: -0.006em;
}

.pf-c-form-control:hover,
.pf-c-form-control:focus {
    border: none;
    outline: none;
    background: rgba(82, 82, 82, 0.6);
}

.pf-c-form-control[aria-invalid="true"] {
    border: 1px solid #C9190B;
    background-image: none;
}

/* Alert Styles */
.pf-c-alert.pf-m-danger {
    background-color: #FFA5001A;
}

.pf-c-alert.pf-m-inline {
    margin-bottom: 0.5rem;
    padding: 0.25rem;
    border: none;
    border-width: 1px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.pf-c-alert.pf-m-inline::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    content: "";
    background-color: #FFFFFF;
}

.pf-c-alert.pf-m-inline.pf-m-danger::before {
    background-color: #D73F1F;
}

.pf-c-alert.pf-m-danger .pf-c-alert__icon {
    color: #D73F1F;
}

.pf-c-alert.pf-m-danger .pf-c-alert__title {
    color: #D73F1F;
}

.pf-c-alert__title {
    font-size: 14px;
    padding: 5px 8px;
}

/* Button Styles */
.pf-c-button,
.pf-m-primary,
button[type="submit"] {
    padding: 0px 30px;
    height: 51px;
    width: 100%;
    background-color: #E54F20;
    color: #FCFCFC;
    border: none;
    border-radius: 5px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: -0.006em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pf-c-button,
.pf-m-primary {
    background-color: #E54F20 !important;
}

.pf-c-button:hover,
.pf-m-primary:hover,
button[type="submit"]:hover {
    background: #D73F1F;
}

/* Page Title */
h1#kc-page-title {
    margin-top: 0;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-size: 44px;
    line-height: 120%;
    text-align: center;
    letter-spacing: 0.02em;
    color: #C0CECC;
    margin-bottom: 25px;
}

/* Logo */
#kc-logo-wrapper {
    background-image: url(../img/logo_small.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    height: 106px;
    width: 320px;
    margin: 62px auto 20px;
}

div.kc-logo-text {
    background-image: url(../img/logo_small.svg);
    background-repeat: no-repeat;
    background-size: contain;
    height: 106px;
    width: 320px;
    margin: 0 auto;
}

div.kc-logo-text span {
    display: none;
}

#kc-header {
    color: #C0CECC;
    overflow: visible;
    white-space: nowrap;
    margin-bottom: 0;
}

#kc-header-wrapper {
    font-size: 29px;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2em;
    padding: 62px 10px 20px;
    white-space: normal;
}

/* Content Areas */
#kc-content {
    width: 100%;
}

#kc-content-wrapper {
    margin-top: 20px;
}

#kc-form-wrapper {
    margin-top: 10px;
}

/* Form Container - Main Card */
.card-pf {
    margin: 0 auto;
    padding: 60px;
    max-width: 800px;
    background: #171717;
    border-radius: 30px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Form Group Spacing */
.form-group {
    margin-bottom: 10px;
}

#kc-form-login div.form-group:last-of-type,
#kc-register-form div.form-group:last-of-type,
#kc-update-profile-form div.form-group:last-of-type {
    margin-bottom: 0px;
}

/* Form Buttons */
#kc-form-buttons {
    margin-top: 30px;
}

/* Info Section */
#kc-info {
    margin: 20px -40px -30px;
}

#kc-info-wrapper {
    font-size: 13px;
    padding: 15px 35px;
    background-color: transparent;
}

#kc-form-options {
    margin-top: 15px;
}

#kc-form-options span {
    display: block;
}

#kc-form-options .checkbox {
    margin-top: 0;
    color: #C0CECC;
}

/* Required Field Marker */
.required {
    color: #B32D1B;
}

/* Container Positioning */
#kc-container-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.login-pf .container {
    padding: 0;
    max-width: 800px;
    width: 100%;
}

/* Links */
.login-pf a,
.login-pf a:visited {
    color: #C0CECC;
    text-decoration: underline;
}

.login-pf a:hover {
    color: #E54F20;
}

/* Labels */
label {
    color: #C0CECC;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.006em;
    margin-bottom: 5px;
    display: block;
}

/* Footer */
#kc-locale {
    position: relative;
    text-align: right;
    z-index: 9999;
    margin-top: 20px;
}

#kc-locale ul {
    background-color: #171717;
    display: none;
    top: 20px;
    min-width: 100px;
    padding: 0;
    border-radius: 5px;
}

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

#kc-locale-dropdown a {
    color: #C0CECC;
    text-align: right;
    font-size: 14px;
}

a#kc-current-locale-link::after {
    content: "\2c5";
    margin-left: 4px;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .login-pf body {
        background: #FCFCFC;
        min-height: 100vh;
    }

    .card-pf {
        padding: 40px 20px;
        border-radius: 20px;
        max-width: 80%;
        margin-bottom: 50px !important;
    }

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

    #kc-logo-wrapper {
        width: 200px;
        height: 80px;
        margin: 30px auto 20px;
    }

    #kc-header-wrapper {
        font-size: 20px;
        padding: 30px 10px 10px;
    }

    div.kc-logo-text {
        width: 200px;
        height: 80px;
    }
}

@media (min-width: 768px) {
    #kc-container-wrapper {
        position: relative;
        width: 100%;
    }
}

/* Social Login */
.kc-social-links {
    margin-top: 20px;
}

.kc-social-item {
    margin-bottom: 0.5rem;
    font-size: 15px;
    text-align: center;
}

.kc-social-section {
    text-align: center;
    margin-top: 20px;
}

/* No bottom margin utility */
.no-bottom-margin {
    margin-bottom: 0;
}

/* Back link */
#kc-back {
    margin-top: 15px;
    text-align: center;
}

/* Registration Link */
#kc-registration {
    margin-top: 20px;
    text-align: center;
}

.login-pf-page .login-pf-signup {
    font-size: 15px;
    color: #C0CECC;
}

/* Username Display */
#kc-username {
    text-align: center;
    margin-bottom: -10px;
}

#kc-attempted-username {
    font-size: 20px;
    font-family: inherit;
    font-weight: normal;
    padding-right: 10px;
}

/* Decorative Background Blurred Elements */

/* Bottom right - blue radial gradient */
.login-pf body::before {
    content: "";
    position: fixed;
    width: 768px;
    height: 707px;
    right: -100px;
    bottom: -200px;
    background: radial-gradient(circle, #86EEF5 0%, rgba(134, 238, 245, 0.4) 40%, rgba(134, 238, 245, 0) 70%);
    opacity: 0.7;
    filter: blur(65px);
    transform: rotate(-14.7deg);
    z-index: 0;
    pointer-events: none;
}

/* Top left - orange with blue hue */
.login-pf body::after {
    content: "";
    position: fixed;
    width: 600px;
    height: 600px;
    left: -200px;
    top: -200px;
    background: radial-gradient(circle, #FD6F00 0%, rgba(253, 111, 0, 0.6) 30%, rgba(134, 238, 245, 0.2) 60%, rgba(134, 238, 245, 0) 80%);
    opacity: 0.6;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

/* Decorative elements for the form card - top left orange blur */
.card-pf::before {
    content: "";
    position: absolute;
    width: 858px;
    height: 790px;
    left: -400px;
    top: -656px;
    background: radial-gradient(circle, #FD6F00 0%, rgba(253, 111, 0, 0.5) 40%, rgba(253, 111, 0, 0) 70%);
    opacity: 0.3;
    filter: blur(50px);
    transform: rotate(-14.7deg);
    z-index: 0;
    pointer-events: none;
}

/* Decorative elements for the form card - bottom left blue blur */
.card-pf::after {
    content: "";
    position: absolute;
    width: 414px;
    height: 415px;
    left: -126px;
    bottom: -144px;
    background: radial-gradient(circle, #86EEF5 0%, rgba(134, 238, 245, 0.6) 40%, rgba(134, 238, 245, 0) 70%);
    opacity: 0.3;
    filter: blur(35px);
    transform: rotate(-36.3deg);
    z-index: 0;
    pointer-events: none;
}

/* Top right orange gradient overlapping the form */
#kc-container-wrapper::before {
    content: "";
    position: absolute;
    width: 768px;
    height: 707px;
    right: -150px;
    top: 150px;
    background: radial-gradient(circle, #FD6F00 0%, rgba(253, 111, 0, 0.5) 40%, rgba(253, 111, 0, 0) 70%);
    opacity: 0.4;
    filter: blur(60px);
    transform: rotate(-14.7deg);
    z-index: 0;
    pointer-events: none;
}

/* Ensure form content is above decorative elements */
.card-pf > * {
    position: relative;
    z-index: 1;
}

/* Navigation/Header Area Styling */
#kc-header-wrapper {
    position: relative;
    z-index: 10;
}

/* Additional decorative gradient for visual interest */
.login-pf-page {
    position: relative;
}

#kc-form,
#kc-info,
#kc-social-providers,
.pf-c-button,
.pf-c-form-control {
    position: relative;
    z-index: 2;
}