/**
 * ConnectMedia Login & Registration Styles
 */

/* ConnectMedia Branding Colors */
:root {
    --connectmedia-primary: #0073aa;
    --connectmedia-secondary: #005f8b;
    --connectmedia-accent: #00a0d2;
    --connectmedia-text: #333333;
    --connectmedia-light: #ffffff;
    --connectmedia-error: #f8d7da;
    --connectmedia-error-border: #f5c6cb;
    --connectmedia-error-text: #721c24;
}

/* Common Styles */
.login-container,
.registration-container,
.otp-verification-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--connectmedia-light);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #444;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    border-color: #0073aa;
    outline: none;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input[type="checkbox"] {
    margin-right: 10px;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

.form-group.submit {
    margin-top: 30px;
}

input[type="submit"] {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--connectmedia-primary);
    color: var(--connectmedia-light);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: var(--connectmedia-secondary);
}

.form-links {
    margin-top: 20px;
    text-align: center;
}

.form-links a {
    display: inline-block;
    margin: 5px 0;
    color: var(--connectmedia-primary);
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}

/* ConnectMedia Branding */
.connectmedia-logo {
    display: block;
    margin: 0 auto 20px;
    max-width: 200px;
    height: auto;
}

.login-container h2,
.registration-container h2,
.otp-verification-container h2 {
    color: var(--connectmedia-primary);
}

/* Error Messages */
.login-error,
.registration-error,
.otp-error {
    margin-bottom: 20px;
    padding: 10px 15px;
    background-color: var(--connectmedia-error);
    border: 1px solid var(--connectmedia-error-border);
    border-radius: 4px;
    color: var(--connectmedia-error-text);
}

/* Description Text */
.description {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

/* reCAPTCHA */
.g-recaptcha {
    margin: 20px 0;
}

/* OTP Verification Specific */
.form-group.resend input[type="submit"] {
    background-color: transparent;
    color: #0073aa;
    text-decoration: underline;
    padding: 0;
    font-weight: normal;
}

.form-group.resend input[type="submit"]:hover {
    background-color: transparent;
    color: #005f8b;
}

/* Full Path Example: /wp-content/plugins/your-connectmedia-plugin/css/custom-login-styles.css */

body.login {
    /* Background color or image */
    background-color: #f1f1f1; /* Example: Light gray */
}

#login h1 a {
    /* Replace WordPress Logo */
    /* IMPORTANT: Adjust this path relative to the CSS file location! */
    /* If your images folder is /wp-content/plugins/your-connectmedia-plugin/images/ */
    background-image: url('../../images/connectmedia-logo.png');
    background-size: contain; /* Or cover, or specific dimensions */
    background-position: center center;
    background-repeat: no-repeat;
    width: 200px; /* Adjust width */
    height: 80px; /* Adjust height */
    margin-bottom: 20px;
    text-indent: -9999px; /* Hide the default text */
}

#login form {
    /* Style the form box */
    background: #ffffff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

#login label {
    /* Style form labels */
    color: #333;
}

.login #backtoblog a,
.login #nav a {
    /* Style the links below the form */
    color: #555d66;
}

.login #backtoblog a:hover,
.login #nav a:hover {
    color: #0073aa;
}

.wp-core-ui .button-primary {
    /* Style the primary button (Log In, Save Password, etc.) */
    background: #007cba; /* Example: ConnectMedia blue */
    border-color: #007cba;
    /* Add other styles */
}
.wp-core-ui .button-primary:hover {
    background: #005a87; /* Darker blue on hover */
    border-color: #005a87;
}

/**
 * Custom styles for WordPress login and password reset pages
 */

body.login {
    background-color: #f8f8f8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#login {
    width: 400px;
    padding: 40px 0;
}

#login h1 a {
    background-image: url('../../images/connectmedia-logo.png') !important;
    background-size: contain !important;
    width: 220px !important;
    height: 80px !important;
    margin-bottom: 30px;
}

.login form {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 26px 24px 34px;
}

.login label {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.login form .input {
    font-size: 16px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}

.login .button-primary {
    background-color: #0073aa;
    border-color: #0073aa;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    height: auto;
    width: 100%;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.login .button-primary:hover {
    background-color: #005d87;
    border-color: #005d87;
}

.login #nav, .login #backtoblog {
    text-align: center;
    padding: 0;
    margin: 20px 0 0;
}

.login #nav a, .login #backtoblog a {
    color: #0073aa;
    font-size: 14px;
    text-decoration: none;
}

.login #nav a:hover, .login #backtoblog a:hover {
    color: #005d87;
    text-decoration: underline;
}

/* Remove WordPress branding */
.login #nav + p {
    display: none !important;
}

/* Message styling */
.login #login_error, .login .message, .login .success {
    border-left: 4px solid #0073aa;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login #login_error {
    border-left-color: #dc3232;
}

/* Password strength meter */
#pass-strength-result {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    margin-top: 10px;
    padding: 8px;
    text-align: center;
    font-weight: 600;
    border-radius: 4px;
}

#pass-strength-result.strong {
    background-color: #c1e1b9;
    border-color: #83c373;
    color: #155724;
}

#pass-strength-result.good {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

#pass-strength-result.bad,
#pass-strength-result.short {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Remove visibility toggle icon (eye) and replace with our own */
.wp-hide-pw {
    margin: 0 !important;
    padding: 6px 8px !important;
}

/* Custom footer to replace WordPress one */
.custom-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 12px;
}

/* Password reset page specific */
.login .button.wp-hide-pw .dashicons {
    color: #0073aa;
}

/* Password hint text */
.login .indicator-hint {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}
/* [Existing CSS remains unchanged] */

/* Password Toggle Styles */
.password-toggle {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle input[type="password"],
.password-toggle input[type="text"] {
    flex: 1;
    padding-right: 40px; /* Space for the icon */
}

.password-toggle .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    font-size: 16px;
    transition: color 0.3s;
    background: none;
    border: none;
    padding: 0;
    z-index: 1;
}

.password-toggle .toggle-password:hover {
    color: var(--connectmedia-primary);
}

.password-toggle .toggle-password:focus {
    outline: 2px solid var(--connectmedia-primary);
    outline-offset: 2px;
}

/* Responsive Adjustments for Password Toggle */
@media (max-width: 600px) {
    .password-toggle .toggle-password {
        font-size: 14px;
        right: 8px;
    }
    .password-toggle input[type="password"],
    .password-toggle input[type="text"] {
        padding-right: 35px;
    }
}

/* [Rest of the existing CSS remains unchanged] */

/* Add more specific styles as needed */

/* Responsive Adjustments */
@media (max-width: 600px) {
    .login-container,
    .registration-container,
    .otp-verification-container {
        max-width: 100%;
        margin: 20px 10px;
        padding: 20px 15px;
    }
    
    
}