/* Login Plugin Styles */
.login-plugin-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.login-plugin-form {
    width: 100%;
}

.login-plugin-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.login-plugin-field {
    margin-bottom: 15px;
}

.login-plugin-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.login-plugin-field input[type="email"],
.login-plugin-field input[type="password"],
.login-plugin-field input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.login-plugin-field input[type="email"]:focus,
.login-plugin-field input[type="password"]:focus,
.login-plugin-field input[type="text"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.login-plugin-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

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

.login-plugin-checkbox label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.login-plugin-submit {
    width: 100%;
    padding: 12px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 15px;
}

.login-plugin-submit:hover {
    background-color: #005a87;
}

.login-plugin-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.login-plugin-links {
    text-align: center;
    margin-top: 15px;
}

.login-plugin-links a {
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
    margin: 0 10px;
}

.login-plugin-links a:hover {
    text-decoration: underline;
}

.login-plugin-message {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.login-plugin-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.login-plugin-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.login-plugin-loading {
    display: none;
    text-align: center;
    margin: 10px 0;
}

.login-plugin-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* My Account Styles */
.my-account-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.my-account-nav {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.my-account-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.my-account-nav li {
    margin: 0;
}

.my-account-nav a {
    display: block;
    padding: 10px 15px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.my-account-nav a:hover,
.my-account-nav a.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.my-account-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.my-account-section {
    display: none;
}

.my-account-section.active {
    display: block;
}

.my-account-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.account-details-form {
    max-width: 500px;
}

.account-details-form .login-plugin-field {
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-plugin-container {
        margin: 10px;
        padding: 15px;
    }
    
    .my-account-container {
        margin: 10px;
        padding: 15px;
    }
    
    .my-account-nav ul {
        flex-direction: column;
    }
    
    .my-account-nav a {
        text-align: center;
    }
}

/* Form Toggle Styles */
.form-toggle {
    text-align: center;
    margin: 20px 0;
}

.form-toggle a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.form-toggle a:hover {
    text-decoration: underline;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 5px;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.password-strength.weak .password-strength-bar {
    width: 33%;
    background: #e74c3c;
}

.password-strength.medium .password-strength-bar {
    width: 66%;
    background: #f39c12;
}

.password-strength.strong .password-strength-bar {
    width: 100%;
    background: #27ae60;
}

.password-strength-text {
    font-size: 12px;
    margin-top: 5px;
    color: #666;
}

/* Hide/Show Password */
.password-field-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
}

.password-toggle:hover {
    color: #0073aa;
}

/* Hide WordPress Admin Bar */
#wpadminbar {
    display: none !important;
}

/* Adjust body margin when admin bar is hidden */
html.wp-toolbar {
    padding-top: 0 !important;
}

body.admin-bar {
    margin-top: 0 !important;
}

/* Additional admin bar hiding for different states */
#wp-admin-bar-root-default,
#wp-admin-bar-top-secondary,
.ab-top-menu,
.ab-top-secondary {
    display: none !important;
}

/* Hide specific admin bar elements */
#wp-admin-bar-my-account,
#wp-admin-bar-user-actions,
#wp-admin-bar-user-info,
.ab-item,
.ab-label {
    display: none !important;
}

/* Hide any remaining admin bar text */
#wpadminbar * {
    display: none !important;
}

/* Force hide admin bar completely */
.admin-bar #wpadminbar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Additional comprehensive admin bar hiding */
#wpadminbar,
#wp-admin-bar,
.wp-admin-bar,
#adminbar,
.adminbar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    z-index: -1 !important;
}

/* Hide admin bar for all possible selectors */
body.admin-bar,
html.wp-toolbar,
.wp-toolbar {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Remove admin bar space completely */
body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

html {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hide any WordPress admin elements */
[id*="admin"],
[class*="admin"],
[id*="wp-admin"],
[class*="wp-admin"] {
    display: none !important;
}

/* Specific targeting for stubborn admin bars */
#wpadminbar *,
.admin-bar #wpadminbar *,
#wp-admin-bar *,
.wp-admin-bar * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}