/**
 * Login page styles
 */

/* Background and container */
body.login {
    background: #007BFF; /* Brand Primary Blue from zsell style guide */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

#login {
    background: white;
    border-radius: 8px;
    padding: 40px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Logo */
#login h1 {
    text-align: center;
    margin-bottom: 30px;
}

#login h1 a {
    background-image: url('https://zsell.ai/wp-content/uploads/2024/10/Logo-Design-02-1.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

/* Welcome text */
.login-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5px;
    color: #2D2D2D; /* Deep Contrast from zsell style guide */
}

.login-subtitle {
    font-size: 16px;
    text-align: center;
    margin-bottom: 25px;
    color: #555555; /* Body Text from zsell style guide */
}

/* Form elements */
.login form {
    margin-top: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.login label {
    color: #555555; /* Body Text color */
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.login form .input {
    background: #FFF;
    border: 1px solid #F0F0F0; /* Section Divider color */
    border-radius: 5px;
    padding: 12px 12px 12px 40px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 5px;
    outline: none;
}

.login form .input:focus {
    border-color: #FFAA00; /* Brand Primary Orange from zsell style guide */
    box-shadow: 0 0 0 1px #FFAA00;
}

/* CAPTCHA/Math verification field - Fix text visibility */
.login form input[type="number"],
.login form #input_box {
    background-color: #fff;
    color: #333; /* Dark text color to ensure visibility */
    border: 1px solid #F0F0F0;
    border-radius: 5px;
    padding: 12px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
}

.login form input[type="number"]:focus,
.login form #input_box:focus {
    border-color: #FFAA00;
    box-shadow: 0 0 0 1px #FFAA00;
}

/* Username and Password icons */
.input-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Password visibility toggle */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
}

/* Submit button */
#wp-submit {
    background: #00858A; /* Call-to-Action color from zsell style guide */
    border: none;
    box-shadow: none;
    color: white;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: none;
    height: auto;
    line-height: normal;
    margin-top: 15px;
}

#wp-submit:hover {
    background: #006D71; /* Darker version for hover */
}

/* Remember me checkbox */
.forgetmenot {
    margin-bottom: 15px;
}

.forgetmenot label {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.forgetmenot input[type="checkbox"] {
    margin-right: 8px;
}

/* Forgot links */
.forgot-link {
    text-align: right;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 15px;
}

.forgot-link a {
    color: #007BFF; /* Interactive Elements color */
    text-decoration: none;
}

.forgot-link a:hover {
    color: #0069D9; /* Darker blue on hover */
    text-decoration: underline;
}

/* Hide default elements */
#nav, #backtoblog, .privacy-policy-page-link {
    display: none !important;
}

/* Language switcher - hide */
.language-switcher {
    display: none !important;
}

/* Other default elements to adjust */
.login #login_error, .login .message, .login .success {
    border-left-color: #FFAA00; /* Brand Primary Orange */
    background: #FFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}