/**
 * CSS fixes for TYPO3 v12 felogin form styling
 * This file addresses styling differences between v11 and v12 login forms
 */

/* Add mod-form styling to the form itself since the wrapper is missing */
.frame-type-felogin_login form {
    position: relative;
    padding-bottom: 30px;
}

/* Create mod-form container styling */
.frame-type-felogin_login {
    margin-bottom: 20px;
}

/* Style the fieldset to match old version */
.frame-type-felogin_login fieldset {
    padding-bottom: 25px;
    border: none;
}

/* Style the legend to be hidden like in the old version */
.frame-type-felogin_login legend {
    display: none;
}

/* Style the label containers to look like the old mod-form__field */
.frame-type-felogin_login fieldset > div {
    margin-bottom: 1em;
    position: relative;
}

/* Style the labels to be positioned like the old version */
.frame-type-felogin_login label {
    display: block;
    position: relative;
}

/* Style the inputs to match the old version */
.frame-type-felogin_login input[type="text"],
.frame-type-felogin_login input[type="password"] {
    width: 100%;
    padding: 8px;
    margin: 0;
    border: 1px solid #00822d;
    background: #fff;
    box-sizing: border-box;
}

/* Style the submit button to match the old version */
.frame-type-felogin_login input[type="submit"] {
    border-radius: 0;
    box-shadow: none;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    font-family: "Source Sans Pro";
    padding: 5px 20px;
    transition: background-color .2s linear, border-color .2s linear, color .2s linear;
    border: #00822d;
    background: #00822d;
    color: #fff;
    margin: 10px 12px 10px 0;
    text-transform: uppercase;
}

.frame-type-felogin_login input[type="submit"]:hover {
    background: #00822f;
    border-color: #00822f;
    color: #fff;
}

/* Style the links to match the old version */
.frame-type-felogin_login p a {
    color: #00822d;
    text-decoration: none;
    text-transform: uppercase;
    margin: 10px 12px 10px 0;
    padding: 6px 6px 6px 0;
    display: inline-block;
}

.frame-type-felogin_login p a:hover {
    color: #00822f;
}

/* Hide the label text but keep it accessible for screen readers */
.frame-type-felogin_login label span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
