/* --------------------------------------------------------------------------
   Custom WordPress Login Page Styles
   Designed to match the provided screenshot
-------------------------------------------------------------------------- */

body.login {
    background-color: #FCFBF8;
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    /* Prevent scrolling if possible */
}

/* 
  Top Header Bar 
*/
body.login::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #FFFFFF;
    border-bottom: 2px solid #F1F0E9;
    z-index: 0;
}

/* 
  Logo container inside header
*/
body.login h1 {
    position: absolute;
    top: 20px;
    left: 60px;
    margin: 0;
    z-index: 10;
}

body.login h1 a {
    width: 180px;
    height: 40px;
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
    outline: none;
    /* Optional: Replace the default WordPress logo with the site's logo using background-image */
}

/* 
  Main Content Wrapper setup
  WordPress wraps the form inside div#login 
*/
body.login #login {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    height: calc(100vh - 80px);
    /* Fill remaining space below header */
    margin: 80px auto 0 auto;
    padding: 0 40px;
}

/* 
  The Large Orange Left Panel (created as a pseudo-element on #login)
*/
body.login #login::before {
    content: "";
    display: block;
    width: 48%;
    /* Takes almost half the screen */
    height: calc(100% - 80px);
    /* Leave top and bottom margins */
    max-height: 800px;
    background: #FFB300;
    /* Subtle curved gradient to match the wave effect */
    background: radial-gradient(150% 150% at bottom left, #FF9900 30%, #FFB300 70%);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(255, 179, 0, 0.2);
}

/* 
  The Form Container (Right Side)
*/
#loginform {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    width: 100%;
    /* Of its parent */
    max-width: 380px;
    margin: 0;
    /* Position exactly on the right side */
    position: absolute;
    right: 15%;
    /* Adjust distance from right edge */
    top: 50%;
    transform: translateY(-50%);
    /* Vertical centering */
}

/* 
  Hide the default site name text if any, and inject the "Login" heading 
*/
#loginform::before {
    content: "Login";
    display: block;
    color: #FFA500;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 30px;
    font-family: Georgia, serif;
    letter-spacing: -0.5px;
}

/* 
  Form Labels 
*/
body.login label {
    color: #4A4D55;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* 
  Form Inputs 
*/
body.login form .input,
input[type=text],
input[type=password] {
    border-radius: 8px;
    border: 1px solid #E2DCD2;
    padding: 14px 15px;
    box-shadow: none;
    background: #FFFFFF;
    font-size: 15px;
    width: 100%;
    color: #333333;
    transition: border-color 0.3s ease;
    margin-bottom: 25px;
    /* Spacing between inputs */
}

/* Input Focus State */
body.login form .input:focus,
input[type=text]:focus,
input[type=password]:focus {
    border-color: #FFB300;
    box-shadow: 0 0 0 2px rgba(255, 179, 0, 0.2);
    outline: none;
}

/* Add custom icon using background image - Optional placeholder */
input[type=text],
input[type=password] {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%234A4D55" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    /* Make space for icon */
}

/* 
  "Remember Me" Checkbox alignment 
*/
body.login .forgetmenot {
    margin-top: 0;
    margin-bottom: 30px;
    float: none;
}

body.login .forgetmenot label {
    font-weight: normal;
    font-size: 13px;
    color: #4A4D55;
    display: flex;
    align-items: center;
}

body.login input[type=checkbox] {
    border: 1px solid #CCC;
    background: #FFF;
    color: #FFB300;
    clear: none;
    cursor: pointer;
    display: inline-block;
    height: 18px;
    margin: 0 8px 0 0;
    outline: 0;
    padding: 0;
    text-align: center;
    vertical-align: middle;
    width: 18px;
    min-width: 18px;
    -webkit-appearance: none;
    border-radius: 4px;
    transition: all .2s ease-in-out;
}

body.login input[type=checkbox]:checked {
    background-color: #FFB300;
    border-color: #FFB300;
}

body.login input[type=checkbox]:checked::before {
    content: url("data:image/svg+xml;utf8,%3Csvg%20viewBox%3D%220%200%2014%2014%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M11.2727%203.49988L5.35234%209.43161L2.72729%206.8%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
    margin: -3px 0 0 -4px;
    height: 14px;
    width: 14px;
}

/* 
  Submit / Log In Button 
*/
body.login .submit {
    clear: both;
    margin: 0;
    padding: 0;
}

body.login .button.button-primary {
    background-color: #FFB300;
    border: none;
    border-radius: 6px;
    color: #FFFFFF;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 600;
    text-shadow: none;
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.25);
    transition: all 0.2s ease;
    cursor: pointer;
    float: left;
    /* Keep left aligned */
}

body.login .button.button-primary:hover {
    background-color: #F0A300;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(255, 179, 0, 0.35);
}

/* 
  Nav Container (Lost your password?)
*/
body.login #nav {
    position: absolute;
    right: 15%;
    /* Same exactly as form */
    bottom: calc(50% - 220px);
    /* Positioned below the form */
    width: 100%;
    max-width: 380px;
    margin: 0;
    padding: 0;
    text-align: left;
    z-index: 2;
}

body.login #nav a {
    color: #4A4D55;
    font-size: 13px;
    transition: color 0.2s ease;
    text-decoration: none;
}

body.login #nav a:hover {
    color: #FFB300;
    text-decoration: underline;
}

/* Hide back to blog link to clean up UI */
body.login #backtoblog {
    display: none;
}

/* 
  Messages & Errors 
  Position them properly above the form
*/
body.login .message,
body.login #login_error {
    position: absolute;
    right: 15%;
    top: calc(50% - 250px);
    width: 100%;
    max-width: 380px;
    border-left: 4px solid #FFB300;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

body.login #login_error {
    border-left-color: #dc3232;
}

/* 
  Responsive Adjustments for Mobile View 
*/
@media (max-width: 900px) {
    body.login #login::before {
        display: none;
        /* Hide the large left panel on smaller screens */
    }

    #loginform,
    body.login #nav,
    body.login .message,
    body.login #login_error {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
        margin: 20px auto;
    }

    body.login #login {
        display: block;
        margin-top: 100px;
        /* Space for header */
        height: auto;
    }

    body.login h1 {
        left: 20px;
        /* Adjust logo position */
    }
}