/* Authentication Modals Styling */

/* Password Field Styling */
.password-field-container {
    position: relative;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Ensure password fields match email field exactly */
.password-input-wrapper {
    width: 100%;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    width: 100%;
    padding-right: 40px; /* Space for the toggle button */
    /* No need to duplicate other styles as they're now in global.css */
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2; /* Ensure it's above the input */
}

.password-toggle {
    color: #777;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #333;
}

.password-toggle i {
    font-size: 16px;
}

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

.strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
    border-radius: 2px;
}

.strength-weak .strength-bar {
    width: 25%;
    background-color: #ff4d4d;
}

.strength-medium .strength-bar {
    width: 50%;
    background-color: #ffaa00;
}

.strength-strong .strength-bar {
    width: 75%;
    background-color: #73c0e6;
}

.strength-very-strong .strength-bar {
    width: 100%;
    background-color: #00cc66;
}

.password-requirements {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 0.8em;
}

.password-match-message {
    color: #00cc66;
    font-size: 0.8em;
    margin-top: 8px;
}

/* Social Login Container */
.social-login-container {
    margin-top: 1.5em;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 1em;
}

.social-login-container p {
    margin-bottom: 0.8em;
    color: #666;
    font-size: 0.9em;
}

/* Social Buttons Container */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 0.5em;
}

/* Base Social Button Styling */
.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.social-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.social-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.social-button img {
    margin-right: 8px;
    filter: grayscale(100%);
}

/* Google Button */
.social-button.google:hover {
    border-color: #DB4437;
    color: #DB4437;
}

.social-button.google:hover img {
    filter: none;
}

/* Facebook Button */
.social-button.facebook:hover {
    border-color: #4267B2;
    color: #4267B2;
}

.social-button.facebook:hover img {
    filter: none;
}

/* Success Message */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-top: 1em;
    text-align: center;
}

/* Error Message */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-top: 1em;
    text-align: center;
}
