/* Reset and Base Styles */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: rgb(240, 240, 241);
    min-width: 0px;
    color: rgb(60, 67, 74);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 13px;
    line-height: 1.4;
    box-sizing: border-box;
}

body.login * {
    box-sizing: border-box;
}

/* Custom Background */
body.login {
    /* Use a gradient background as the main image is protected */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 163.664 214.313"><g transform="matrix(.26458 0 0 .26458 -217.336 0)" opacity="1"><path d="M948.339 920.379c-21.84 10.92-57.995 14.56-83.475 14.56-29.119 0-43.436-14.56-43.436-36.157 0-18.2 14.56-32.516 36.4-54.355 76.194-68.915 272.019-242.9 272.019-456.925 0-57.995-50.716-98.034-79.835-108.71-36.399-14.56-199.465-57.996-199.465-239.261 0-156.03 101.431-297.499 261.1-297.499 206.745 0 366.171 192.185 366.171 475.124 0 380.245-417.129 645.227-529.48 703.223z" fill="%23ff0043"/></g></svg>');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%;
}

/* Links */
a {
    color: rgb(34, 113, 177);
    transition-property: border, background, color;
    transition-duration: 0.05s;
    transition-timing-function: ease-in-out;
    text-decoration: none;
    outline: 0px;
}

a:active, a:hover {
    color: rgb(19, 94, 150);
}

a:focus {
    color: rgb(4, 57, 89);
    box-shadow: rgb(34, 113, 177) 0px 0px 0px 2px;
    outline: transparent solid 2px;
}

/* Typography */
p {
    line-height: 1.5;
}

h1 {
    display: none;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    overflow-wrap: normal !important;
}

/* Messages and Notices */
.login .message, .login .notice, .login .success {
    border-left: 0;
    border-bottom: 4px solid #e41f27;
    box-shadow: none;
    background: none;
    width: 250px;
    margin: 0 auto 20px;
    font-weight: bold;
    padding: 12px;
    overflow-wrap: break-word;
}

/* Login Container */
div#login {
    width: 300px;
    position: absolute;
    top: 50%;
    --left: calc(33% - 150px);
    left: max(var(--left), 10px);
    transform: translate(0, -50%);
    margin: 0;
    text-align: center;
    padding: 0;
}

/* Login Logo */
.login h1.wp-login-logo a {
    background-image: url('/web/images/logo-media-press-group.png');
    background-size: 200px;
    background-position: center top;
    background-repeat: no-repeat;
    color: rgb(60, 67, 74);
    height: 84px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0px auto 25px;
    padding: 0px;
    text-decoration: none;
    width: 84px;
    text-indent: -9999px;
    outline: 0px;
    overflow: hidden;
    display: block;
}

/* Login Form */
.login form,
#login form#loginform {
    width: 100%;
    height: auto;
    background: url('/web/images/logo-media-press-group.png') 50% 20px / 200px no-repeat, rgba(255, 255, 255, 0);
    padding: 170px 24px 20px;
    margin-top: 0;
    color: #888;
    border: 0;
    border-radius: 4px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    font-weight: 400;
    overflow: hidden;
}

#login form p {
    position: relative;
    margin-bottom: 0;
}

/* Labels */
.login label {
    font-size: 12px !important;
    line-height: 40px;
    width: 100%;
    position: relative;
    text-align: left;
    margin: 0 2px 3px;
    display: inline-block;
}

/* Input Fields */
.login form .input,
.login input[type="password"],
.login input[type="text"],
#login form#loginform .input {
    margin: 0;
    min-height: 28px;
    font-size: 14px;
    border: solid #ddd 1px;
    border-radius: 5px;
    padding: 10px 20px;
    width: calc(100% - 4px);
    left: 0;
    top: 0;
    background: #fff;
    border-width: 0.0625rem;
    max-height: none;
}

#loginform .input:focus {
    box-shadow: 0 0 0 2px #ddd;
}

.login input.password-input {
    font-family: Consolas, Monaco, monospace;
}

.js.login input.password-input {
    padding-right: 2.5rem;
}

/* Password Wrapper */
#login div.user-pass-wrap,
div.user-pass-wrap {
    width: auto;
    position: relative;
    right: 0;
}

.login .wp-pwd {
    position: relative;
}

/* Hide Password Button */
.login .button.wp-hide-pw,
#loginform .button.wp-hide-pw {
    background: 0 0;
    border: 1px solid transparent;
    box-shadow: none;
    font-size: 14px;
    line-height: 2;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 40px;
    min-height: 40px;
    margin: 0;
    padding: 5px 9px;
    position: absolute;
    right: 0;
    top: 0;
    display: none !important; /* Hidden as per original styles */
}

/* Dashicons */
.dashicons {
    font-family: dashicons;
    display: inline-block;
    line-height: 1;
    font-weight: 400;
    font-style: normal;
    text-decoration: inherit;
    text-transform: none;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    width: 20px;
    height: 20px;
    font-size: 20px;
    vertical-align: top;
    text-align: center;
}

.login .button.wp-hide-pw .dashicons {
    width: 1.25rem;
    height: 1.25rem;
    top: 0.25rem;
}

/* Remember Me */
.login form .forgetmenot {
    float: none;
    clear: both;
    padding: 24px 0 6px;
    margin-bottom: 0;
}

.login form .forgetmenot label,
.login .forgetmenot label {
    line-height: 1.5;
    vertical-align: baseline;
    width: auto;
    padding: 0;
}

/* Submit Button */
p.submit {
    clear: both;
    text-align: center;
    padding: 10px !important;
    margin: 0;
}

#loginform p.submit input#wp-submit,
.login .button-primary {
    float: none !important;
    text-shadow: none;
    border-radius: 5px;
    background: #e41f27;
    box-shadow: none;
    border: 0;
    padding: 4px 36px;
    display: inline-block;
    cursor: pointer;
    font-size: 13px;
    height: auto;
    color: white;
}

.login .button-primary:hover,
.login .button-primary:focus {
    background: #c91920;
}

/* Navigation Links */
.login #backtoblog, .login #nav {
    font-size: 12px;
    padding: 0 24px;
}

.login #nav {
    margin: 24px 0 0;
}

#backtoblog {
    margin: 16px 0;
    overflow-wrap: break-word;
    display: none;
}

.login #backtoblog a, .login #nav a {
    text-decoration: none;
    color: rgb(80, 87, 94);
}

.login #backtoblog a:hover, .login #nav a:hover {
    color: rgb(19, 94, 150);
}

.login #backtoblog a:focus, .login #nav a:focus {
    color: rgb(4, 57, 89);
}

/* Cookie Notice */
#cookie-notice {
    position: fixed;
    min-width: 100%;
    height: auto;
    z-index: 100000;
    letter-spacing: 0px;
    line-height: 20px;
    left: 0px;
    bottom: 0;
    font-family: -apple-system, BlinkMacSystemFont, Arial, Roboto, "Helvetica Neue", sans-serif;
    font-weight: 400;
    font-size: 13px;
    text-align: center;
}

#cookie-notice * {
    box-sizing: border-box;
}

.cookie-notice-container {
    padding: 15px 30px;
    text-align: center;
    width: 100%;
    z-index: 2;
    background-color: rgba(0,0,0,1);
    color: #fff;
    display: block;
}

.cn-text-container {
    margin: 0 0 6px;
    display: inline-block;
}

.cn-buttons-container {
    display: inline-block;
}

#cookie-notice .cn-button {
    margin: 0 0 0 10px;
    display: inline-block;
    letter-spacing: 0.25px;
    text-transform: none;
    cursor: pointer;
    touch-action: manipulation;
    white-space: nowrap;
    outline: 0px;
    box-shadow: none;
    text-shadow: none;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    padding: 8.5px 10px;
    line-height: 1;
    color: inherit;
}

.cn-close-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    margin-top: -10px;
    width: 15px;
    height: 15px;
    opacity: 0.5;
    padding: 10px;
    outline: 0px;
    cursor: pointer;
}

.cn-close-icon:hover {
    opacity: 1;
}

.cn-close-icon::after, .cn-close-icon::before {
    position: absolute;
    content: " ";
    height: 15px;
    width: 2px;
    top: 3px;
    background-color: grey;
}

.cn-close-icon::before {
    transform: rotate(45deg);
}

.cn-close-icon::after {
    transform: rotate(-45deg);
}

/* Privacy Policy */
.login .privacy-policy-page-link {
    display: none;
    text-align: center;
    width: 100%;
    margin: 3em 0 2em;
}

/* Responsive Design */
@media screen and (max-width: 782px) {
    body.login {
        background-size: contain, auto 100%;
    }
    
    div#login {
        position: static;
        transform: none;
        left: auto;
        top: auto;
        padding: 20px;
        margin: 20px auto;
    }
}

@media (max-width: 900px) {
    .cookie-notice-container #cn-notice-buttons,
    .cookie-notice-container #cn-notice-text {
        display: block;
    }
    
    #cookie-notice .cn-button {
        margin: 0 5px 5px;
    }
}

@media (max-width: 480px) {
    .cookie-notice-container {
        padding: 15px 25px;
    }
}
