/* WooCommerce User Auth Modal Styles */
.wc-auth-container {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.wc-auth-icon {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin: 0;
    line-height: 1;
}

.wc-auth-icon:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.wc-auth-user {
    position: relative;
    display: inline-block;
}

.wc-auth-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wc-auth-dropdown a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.wc-auth-dropdown a:hover {
    background: #f5f5f5;
    color: #e74c3c;
}

.wc-auth-user:hover .wc-auth-dropdown {
    display: block;
}

.wc-auth-modal {
      display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: auto;
}

.wc-auth-modal-content {
   background: #fff;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    position: relative;
    margin: 20px auto;
    top: 50%;
    transform: translateY(-50%);
    animation: slideUp 0.3s ease;
}
/* Keyframe animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px) translateY(-50%); opacity: 0; }
    to { transform: translateY(0) translateY(-50%); opacity: 1; }
}

.wc-auth-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s ease;
}

.wc-auth-close:hover {
    color: #e74c3c;
}

.wc-auth-form {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wc-auth-form.active {
    display: block;
}

.wc-auth-form h2 {
    margin: 0 0 5px 0;
    font-weight: 800;
    color: #333;
    font-size: 24px;
}

.wc-auth-form p {
    color: #555;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.wc-auth-form label {
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0 5px;
    display: block;
    color: #333;
}

.wc-auth-form input[type="text"],
.wc-auth-form input[type="email"],
.wc-auth-form input[type="password"] {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.wc-auth-form input:focus {
    border-color: #e74c3c;
    outline: none;
}

.wc-password-wrapper {
    position: relative;
}

.wc-password-wrapper .wc-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.wc-password-wrapper .wc-eye:hover {
    opacity: 1;
}

.wc-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
}

.wc-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.wc-options input[type="checkbox"] {
    margin: 0;
}

.wc-options a {
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wc-options a:hover {
    color: #d83528;
    text-decoration: underline;
}

.wc-auth-btn {
    background: #e74c3c;
    color: white;
    width: 100%;
    padding: 12px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
}

.wc-auth-btn:hover {
    background: #d83528;
    transform: translateY(-1px);
}

.wc-auth-btn:active {
    transform: translateY(0);
}

.wc-switch {
    font-size: 14px;
    text-align: center;
    margin-top: 15px;
    color: #666;
}

.wc-switch a {
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wc-switch a:hover {
    color: #d83528;
    text-decoration: underline;
}

.wc-name-fields {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.wc-name-fields input {
    flex: 1;
}

.wc-back {
    font-size: 14px;
    display: inline-block;
    margin-bottom: 10px;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wc-back:hover {
    color: #e74c3c;
}

.wc-auth-message {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: none;
    font-size: 14px;
    line-height: 1.4;
}

.wc-auth-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
    border-left: 4px solid #28a745;
}

.wc-auth-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
    border-left: 4px solid #dc3545;
}

/* Responsive Styles */
@media screen and (max-width: 480px) {
    .wc-auth-modal-content {
      top: 20px;
        transform: none;
        margin: 20px auto;
    }

    .wc-name-fields {
        flex-direction: column;
        gap: 12px;
    }
}