/* ==========================================================================
   ASHM Sexual Health Check — Login page styles
   ========================================================================== */

/* ---------- Background ---------- */

body.ashm-shc-login {
    background: #0a2e5c url('bg-login.png') no-repeat center center / cover !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Card ---------- */

#login {
    position: relative;
    background: #fff;
    width: 650px;
    min-height: 400px;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
}

/* ---------- Back chevron (#backtoblog) ---------- */

#backtoblog {
    position: absolute;
    top: 24px;
    left: 24px;
    margin: 0;
    padding: 0;
}

#backtoblog a {
    display: block;
    width: 24px;
    height: 24px;
    text-indent: -9999px;
    overflow: hidden;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%230060ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") no-repeat center center;
    background-size: 24px 24px;
}

#backtoblog a:hover,
#backtoblog a:focus {
    opacity: 0.7;
}

/* ---------- Logo (WP logo replaced) ---------- */

#login h1 {
    margin-bottom: 0;
    padding-bottom: 0;
}

#login h1 a {
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%230060ae'/%3E%3Cpath d='M10 20l4 4 8-8' stroke='%23fff' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M18 24l4 4 8-8' stroke='%23fff' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-size: 40px 40px !important;
    background-position: center center !important;
    text-indent: -9999px;
    overflow: hidden;
}

/* ---------- Logo text ---------- */

.ashm-shc-login__logo-text {
    text-align: center;
    margin-bottom: 24px;
}

.ashm-shc-login__logo-title {
    display: block;
    font-size: 23px;
    font-weight: 500;
    color: #122346;
    line-height: 1.3;
}

.ashm-shc-login__logo-subtitle {
    display: block;
    font-size: 15px;
    color: #0060ae;
    line-height: 1.5;
}

.ashm-shc-login__logo-subtitle strong {
    font-weight: 700;
}

/* ---------- Heading ---------- */

.ashm-shc-login__heading {
    font-size: 20px;
    font-weight: 600;
    color: #122346;
    line-height: 1.3;
    margin: 0 0 8px;
    text-align: left;
}

/* ---------- Description ---------- */

.ashm-shc-login__description {
    font-size: 16px;
    font-weight: 400;
    color: #4a5773;
    line-height: 24px;
    margin: 0 0 24px;
}

/* ---------- Form ---------- */

#loginform {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

#loginform label {
    font-size: 14px;
    font-weight: 500;
    color: #122346;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

#loginform input[type="text"],
#loginform input[type="password"],
#loginform input[type="email"] {
    width: 100%;
    height: 44px;
    border: 1px solid #7e8ba6;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    color: #122346;
    box-sizing: border-box;
    margin-bottom: 16px;
    background: #fff;
    box-shadow: none;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus,
#loginform input[type="email"]:focus {
    border-color: #0060ae;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 96, 174, 0.2);
}

#loginform p {
    margin-bottom: 0;
}

/* ---------- Hide default elements ---------- */

#nav,
.forgetmenot {
    display: none !important;
}

/* ---------- Forgot password link ---------- */

.ashm-shc-login__forgot {
    margin: 0 0 16px;
    text-align: left;
}

.ashm-shc-login__forgot a {
    font-size: 16px;
    color: #0060ae;
    text-decoration: underline;
}

.ashm-shc-login__forgot a:hover,
.ashm-shc-login__forgot a:focus {
    color: #004a87;
}

/* ---------- Submit button ---------- */

#wp-submit {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 100px;
    background: #0060ae;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s;
    float: none;
    margin: 0;
}

#wp-submit:hover,
#wp-submit:focus {
    background: #004a87;
}

.submit {
    padding: 0 !important;
}

/* ---------- Apply button (outline) ---------- */

.ashm-shc-login__btn {
    display: block;
    width: 100%;
    height: 48px;
    line-height: 46px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    border-radius: 100px;
    box-sizing: border-box;
    transition: background-color 0.2s, color 0.2s;
}

.ashm-shc-login__btn--outline {
    border: 2px solid #0060ae;
    color: #0060ae;
    background: transparent;
    margin-top: 16px;
}

.ashm-shc-login__btn--outline:hover,
.ashm-shc-login__btn--outline:focus {
    background: #0060ae;
    color: #fff;
}

/* ---------- Helper text ---------- */

.ashm-shc-login__helper {
    font-size: 16px;
    color: #4a5773;
    line-height: 24px;
    text-align: center;
    margin: 16px 0 0;
}

/* ---------- FAQ footer ---------- */

.ashm-shc-login__faq {
    font-size: 16px;
    color: #4a5773;
    line-height: 24px;
    text-align: center;
    margin: 16px 0 0;
}

.ashm-shc-login__faq a {
    color: #0060ae;
    text-decoration: underline;
}

.ashm-shc-login__faq a:hover,
.ashm-shc-login__faq a:focus {
    color: #004a87;
}

/* ---------- Error / info messages ---------- */

#login_error,
#login .message,
#login .success {
    border-left: 4px solid #0060ae;
    background: #f0f6fc;
    color: #122346;
    padding: 12px 16px;
    margin: 0 0 16px;
    border-radius: 4px;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.5;
}

#login_error {
    border-left-color: #d63638;
    background: #fcf0f0;
}

#login_error a {
    color: #0060ae;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    #login {
        width: auto;
        margin: 20px;
        min-height: 0;
    }
}

@media (max-width: 480px) {
    #login {
        padding: 24px 20px;
        margin: 12px;
    }

    .ashm-shc-login__logo-title {
        font-size: 20px;
    }

    .ashm-shc-login__heading {
        font-size: 18px;
    }
}
