/* Fashion Intern - Custom Login Styles */

/* Variables (Redefined here as style.css isn't loaded) */
:root {
    --color-bg: #ffffff;
    --color-text: #000000;
    --color-border: #000000;
    --color-accent: #000000;
    --color-accent-hover: #333333;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Satoshi', sans-serif;
    --spacing-md: 2rem;
}

body.login {
    background-color: var(--color-bg);
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* Logo */
.login h1 {
    margin-bottom: 20px;
}

.login h1 a {
    background-image: url('../images/logo.png');
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    width: 320px;
    height: 100px;
    margin-bottom: 0;
}

/* Form Container */
#login {
    width: 400px;
    padding: 0;
    margin: auto;
}

.login form {
    margin-top: 0;
    margin-left: 0;
    padding: 40px;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: none;
    border-radius: 0;
}

/* Inputs */
.login label {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: 5px;
}

.login input[type="text"],
.login input[type="password"] {
    font-family: var(--font-body);
    font-size: 16px;
    padding: 15px;
    border: 1px solid var(--color-border);
    background: #fff;
    box-shadow: none;
    margin-bottom: 20px;
    border-radius: 0;
    color: var(--color-text);
    font-weight: 500;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus {
    border-color: var(--color-text);
    box-shadow: none;
    outline: 1px solid var(--color-text);
}

/* Checkbox */
.login .forgetmenot {
    margin-bottom: 20px !important;
    float: none;
}

.login input[type="checkbox"] {
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: 0;
    box-shadow: none;
}

.login input[type="checkbox"]:checked:before {
    color: var(--color-text);
}

/* Submit Button */
.wp-core-ui .button-primary {
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    color: #fff;
    text-transform: uppercase;
    text-shadow: none;
    border-radius: 0;
    box-shadow: none;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 15px 30px; /* Bigger button */
    height: auto;
    line-height: normal;
    font-size: 14px;
    width: 100%;
    transition: all 0.2s;
    float: none;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #fff;
}

/* Links */
.login #backtoblog, .login #nav {
    text-align: center;
    padding: 0;
    margin-top: 25px;
}

.login #backtoblog a, .login #nav a {
    color: #999;
    font-family: var(--font-body);
    font-size: 11px;
    text-transform: uppercase;
    transition: color 0.2s;
    letter-spacing: 0.05em;
}

/* Specific styling for the Register link to make it a CTA */
.login #nav a[href*="wp-register.php"], 
.login #nav a[href*="action=register"] {
    display: block;
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    color: #fff !important;
    padding: 15px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    position: relative;
}

.login #nav a[href*="wp-register.php"]:hover, 
.login #nav a[href*="action=register"]:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

/* Add "New Here?" label above the register button */
.login #nav a[href*="wp-register.php"]::before,
.login #nav a[href*="action=register"]::before {
    content: "NEW HERE?";
    display: block;
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    font-size: 10px;
    color: #999;
    font-weight: 400;
}

.login #backtoblog a:hover, .login #nav a:hover {
    color: var(--color-text);
}

/* Hide Language Switcher */
.language-switcher {
    display: none;
}

/* Hide the "Back to" arrow */
.login #backtoblog a::before, .login #nav a::before {
    display: none;
}

/* Hide Username Field on Registration */
.login-action-register #registerform p:first-child,
.login-action-register #registerform label[for="user_login"],
.login-action-register #user_login {
    display: none;
}
